views:

31

answers:

1

I'm using crystal reports to build reports, everything is ok while development.
But after deployment of website, print functionality doesn't work.

I use _rptDocument.PrintToPrinter(1, false, 0, 0); to print report.

I've tried two methods to deploy website

  1. Normal Publish option.
  2. Web Deployment Project.

But I got the same output, print functionality doesn't work.
Also, I tried to set default printer, this also doesn't work.

Any ideas?

+1  A: 

Printing on a web server isn`t a good idea. What should happen? A user prints on your servers printer? Use CR to create PDFs. Stream them to your clients. They can use their local printers.

Dirk
CR should printed on local PCs of client.
Ahmed
Ok - That's excatly the scenario where I use PDF creation instead of printing. Your code is server-side (ASP.NET). There is no knowledge about the clients printing environment on the server.
Dirk
+1, PDF generation is exactly what I would use in this situation.
Heather