Crystal Report Printing From ASP.net web page.
-
Hello, this is Vikash Gohil. I have a developed a Web Application whereby i need to print a report from my application. The printer is installed on Client PC and is shared on the network. I have installed the printer on the Web Server. The Code I use is: report.PrintOptions.PrinterName = "\\PCName\PrinterName" report.PrintToPrinter(1,false,1,1). Now the problem I am facing when given print from Web Server is as below: When I give command for Printing a Test Page, it prints properly. When I give Print command from a Word, PDF etc documents, it still prints properly. But When I give Print Command using above code from My Web Application (ie from Browser Window), it displays a error Message on the PC on which Printer is Attached. Spoolsv.exe Application Error Message : "The Instruction at "0x500a0330" referenced memory at "0x00000000". This memory could not be read. Anyone has any idea why I am getting this message when printing from my Application and not while printing normally. Do I have to Set any other permissions for the Printer on the Server, eg. permissions for IIS to Print from that printer or permissions for ASPNET user for the printer. Please Anyone could suggest me some thing in this regards. Any help would be greatly appreciated. Awaiting a reply soon. Thanks in Advance.
-
Hello, this is Vikash Gohil. I have a developed a Web Application whereby i need to print a report from my application. The printer is installed on Client PC and is shared on the network. I have installed the printer on the Web Server. The Code I use is: report.PrintOptions.PrinterName = "\\PCName\PrinterName" report.PrintToPrinter(1,false,1,1). Now the problem I am facing when given print from Web Server is as below: When I give command for Printing a Test Page, it prints properly. When I give Print command from a Word, PDF etc documents, it still prints properly. But When I give Print Command using above code from My Web Application (ie from Browser Window), it displays a error Message on the PC on which Printer is Attached. Spoolsv.exe Application Error Message : "The Instruction at "0x500a0330" referenced memory at "0x00000000". This memory could not be read. Anyone has any idea why I am getting this message when printing from my Application and not while printing normally. Do I have to Set any other permissions for the Printer on the Server, eg. permissions for IIS to Print from that printer or permissions for ASPNET user for the printer. Please Anyone could suggest me some thing in this regards. Any help would be greatly appreciated. Awaiting a reply soon. Thanks in Advance.
Here is a complete article on the same. Have a look :) Automatically Printing Crystal Reports in ASP.NET [^]
Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Here is a complete article on the same. Have a look :) Automatically Printing Crystal Reports in ASP.NET [^]
Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
Hello, Abhijit. Thanks for the reply. I have gone through the article as suggested by you. I have a query. The article says of mapping the network printer on the Server and to do this we have to make changes in registry. I want to know how mapping of printer is done and what changes do I have to make in registry so that the Web Server has full rights for network printer. Can you please provide me guidance in this issue. Awaiting your reply. Thanks Again.