Problem:
System.Runtime.InteropServices.COMException (0x80004005): The Report Application Server failed System.Runtime.InteropServices.COMException (0x80000201): Invalid printer specified System.Runtime.InteropServices.COMException (0x80000200): Print engine not opened
//It has been some time since I received these errors and do not remember, but this may also be an error that may occurr:
Error in file: {%TEMP%}.rpt: The request could not be submitted for background processing
Fix:
Make sure the the 'No Printer' checkbox is checked in the page setup of the crystal report:
-
Have project open, and crystal report document open.
-
Select Crystal Reports -> Design -> Page Setup...
-
The Page Setup window will appear.
-
Select No Printer checkbox.
Alternatively, right-click the designer area, and select Design -> Page Setup...
Explanation:
In my case, when using the below snippet, crystal reports engine would first check the selected printer from the page setup, and then print to the provided domain printer.
rpt.PrintOptions.PrinterName = "//domain/printer/"; rpt.PrintToPrinter(1, false, 0, 0);
This was an issue. It became apparent that there was a problem when one customers eventLogs indicated "Invalid printer specified", and another customers eventLogs indicated a random occurrence of all the provided errors. Even though the reports had been deployed to the customers, the reports had been setup with a default printer that pointed to our local domain.
Crystal Reports Runtimes:
......I also speculate that the versioning of the crystal reports runtime makes a difference in this situation. I did not make any changes to the page setup options nor am I aware of any other developers making any changes. I do believe these errors began after upgrade to runtimes 10.5.2. This is just speculation.
11-07-2012
Zaryk





No comments:
Post a Comment