Hello! I have an C#/ASP.NET application that prints a report to a printer on the server side. On the server I have two printer drivers installed. I can print a simple text file to each of them. The server is Server2008 R2 64-bit and the web app is 32-bit.
My application is using a ReportDocument and the PrintToPrinter method. When I choose the Sharp ar-m550n, I get the report. But when I choose the Canon ImageRunner C5030, the application hangs within the printtoprinter method. I looked at the application eventlogs, I see an event logged from my website. The method call is enclosed inside a try.catch block but my exception dialog never comes up, so it looks like the PrintToPrinter method is generating the null object exception.
In my code, I formulate the reportdocument, then set the printername before calling the method. Are there other mandatory settings besides the printer name? Is there a way I can set a timeout on the report so that the website doesn't freeze up? Is there any way I can debug into the method to see what's crashing?
Thanks!
Debbie Erickson