If you try printing one of the same reports using just the code you reference in #1 of your post, does it print slowly as well once deployed to your website?
when i run my application directly in VS2008, and try to print just one report using the code that i used in #1, i was able to print the report at around 2 secs. or when i try to print multiple reports using the same code, i was still able to print the reports
at around 5 secs or less.
but when i deploy the website, by just printing ONE report, it does not print at all, because it does not detect my printer, the error said
No printers are installed.
Server Error in '/Tavern' Application.
No printers are installed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Drawing.Printing.InvalidPrinterException: No printers are installed.
Source Error:
Line 48: RP.PrinterSettings.PrinterName = pd.PrinterSettings.PrinterName;
Line 49: //RP.PrinterSettings.GetHdevmode();
Line 50: RP.Print();
Line 51: chk.Checked = false;
Line 52: verify = true;
johnjalani
Member
334 Points
554 Posts
Re: Automatic Batch Printing in ReportViewer Remote Mode
Aug 05, 2010 12:42 AM|LINK
Hi, Thnx for your reply,
when i run my application directly in VS2008, and try to print just one report using the code that i used in #1, i was able to print the report at around 2 secs. or when i try to print multiple reports using the same code, i was still able to print the reports at around 5 secs or less.
but when i deploy the website, by just printing ONE report, it does not print at all, because it does not detect my printer, the error said
No printers are installed.
Server Error in '/Tavern' Application.
No printers are installed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Drawing.Printing.InvalidPrinterException: No printers are installed.
Source Error:
Source File: d:\Projects\Web\Tavern\Report\Default.aspx.cs Line: 50
But i do have a printer installed in my PC, maybe i need to tell the code that i have a printer but HOW??
please help me. thnx
It's more fun in the Philippines :)
http://www.itsmorefuninthephilippines.com/