Hi All,
I'm having some issues with crystal reports.
My development environment:
Visual Studio 2008, 32bit Windows XP
Running environment:
Windows Server 2003 Service Pack 2 64 bit
Crystal Reports Basic Runtime for Visual Studio 2008 (x86)
I've created two applications: one is console application and one is windows service. Both application run same codes to print crystal reports to printers and run at 32 bit. I can have multiple instance of console application running without any issues. When I run the windows service version, the first time the service works fine. But after I restarted the windows server, the crystal report throw Sysstem.Runtime.InteropServices.COMException.
The detail of the exception is:
System.Runtime.InteropServices.COMException (0x80000201):
Invalid printer specified.
at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal)
at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value)
at Company.PrintReport(ReportClass report, String printerName)
Both console application and windows service run at 32 bits. The user runs the service is domain controller who has admin permission. And the same problem happened on an web application hosted on IIS of the same server.
What I've done so far:
1. Set the printer option in the report to no printer
2. Try install the crystal report x64
3. For the windows service build for x86.
Please some one help me in this.
Cheers