9
votes

I have a web application in Asp.net which is using Crystal Reports and I am using CrystalReportViewer to show crystal report on my aspx page. When I click on Print Button to Print it show me Message

The viewer must export to PDF to print. Choose the Print option from the PDF reader application once the document is opened. Note: You must have a PDF reader installed to print. (eg. Adobe Reader)

It doesn't Print my report directly . Please help.....

1
Most of the modern browsers will support pdf,you dont need a pdf reader to be installed to open a pdf file.Arun CM
I have installed pdf reader(adobe reader) also but I don't want to Export to pdf first. I want to print direct on print buttonsatyender
hello @satyender if you have any solution please help me. i have same problem. see this link My Que. stackoverflow.com/questions/45058712/…Pratik
Hello satyender. Did you find a solution for this? I'm also having the same issue.Anura Adhikari
no dear i removed crystal report and design html with css and directly print that divsatyender

1 Answers

8
votes

Crystal report has PrintToPrinter method to print report direct to printer.

like this

crystalReportDocument.Load("your crystal report file path");
crystalReportDocument.SetDataSource("report data source");
crystalReportDocument.PrintOptions.PrinterName = "your printer name"
crystalReportDocument.PrintToPrinter(1, true, 0, 0);