0
votes

I have web application and i am using SAP Crystal report with VS 2010. I am using this method to print crystal report.

Report.PrintToPrinter(1, false,0,0)

It's working on my development machine but when i moved this to server. it's not printing and showing NO Default Printer Set. I am using VPS as server and installed crystal report too. How do i get the print on user's client machine.

Update :-

All user's machine has different printer so i can't all in my server. I need a solution that will work all user's printer.

2

2 Answers

0
votes

When you invoke method "Report.PrintToPrinter" it looks for printer which directly configured on server where your application deployed, not know any thing about your client machine connected printer.

You can give print command by print dialog where your client machine printer will be listed.

0
votes

The specific printer must installed on sever machine then only it will take the printer , Other wise it shown warring "No Default Printer"