Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
When i am using PrintToPrinter of a crystal reports for printing of a selected page range it works perfect in my local computer, But when i delploy that code on server than it is giving error "No printer installed" because there are no installed printers on server.

I want to print by page range client side so printing will be done on client's system not on server side.

Is there any code or a method to print crystal reports client side ?
Posted

1 solution

As long as you do the printing from code, and not as user interaction, you have no choice...
The code you use to print is running in the server! so it looks for the printer on the server, and finds nothing...
To let Crystal Report to print on the client's machine you first have to present the report to the client via the browser and then you may use some JavaScript code to print the report (half-automatic) or let the end user to choose what and when to print!
 
Share this answer
 

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



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