My C application uses the Crystal Report Print Engine API to open some reports, modify the parameters at runtime, & then print the report to the default Windows printer.
The program works fine when run from a command prompt. However, if I schedule the task(my application) to run using the Windows AT command(task scheduler), the PEStartPrintJob at the end of my app returns an error 545("User cancelled"
, although, I'm not cancelling the report printing.
Why can't it start the print job? Is it just because the task is starting under a LoacSystem account?
The program works fine when run from a command prompt. However, if I schedule the task(my application) to run using the Windows AT command(task scheduler), the PEStartPrintJob at the end of my app returns an error 545("User cancelled"
Why can't it start the print job? Is it just because the task is starting under a LoacSystem account?