Canon discontinued driver support for the CanoScan N1040U but you may be able to use a third party software solution by installing alternative software and hardware drivers. The most successful results seem to come from installing the VueScan drivers from www.hamrick.com. They developed their own set of scanner drivers for many models of scanners and All-in-Ones.
The *VueScan* documentation specifically lists the CanoScan N1040U model within its Supported Scanners section.
Note that after a demonstration period, there is an associated cost with the VueScan software. Without the software package, the drivers alone may or may not work long-term for your particular installation.