Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PEStartPrintJob Error 545 when called through Windows AT command

Status
Not open for further replies.

dlawton

Programmer
Jun 23, 2003
1
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top