Click here to Skip to main content
15,443,778 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I Print the Report Document using


It is working on local machine. But When I host the file to IIS nothing happened.

Pls help me

1 solution

You must understand that your ASP.NET/VB code is running on the server machine not on the client! So, when you publish your website to a live server, it's likely that it does not have any printer installer and that's why you get such error. Again, your code is trying to print to a printer installed at the server not at the client.
If you want to print the report to client printers, then try the solutions provided by these links

Displaying , Exporting and Printing Crystal Reports in ASP.NET
Share this answer
UshaCbe 24-Jul-13 8:17am    
Hi thanks for your reply. But I just open the print dialogue box. That dialogue box also is not opened. No error will come nothing happened
Marc Gabrie 24-Jul-13 8:55am    
You are coding an website, right? if yes, then no PrintDialog will be displayed! Again, your code runs at server side and the dialog "is displayed" at the server but not at the client machine through the browser.
UshaCbe 24-Jul-13 8:21am    
But my server machine also have printer installer
Marc Gabrie 24-Jul-13 8:56am    
You want the report to be printer to the client printer or to a printer which is installed at the server?
UshaCbe 24-Jul-13 23:58pm    
I want to print server printer. So i give the coding crdoc.printtoprinter(1,true,1,1). My server is having printer installation. But the print is not going

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900