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.....
The easiest way to add printing capabilities to your SAP Crystal Reports . NET application is to use the print button on the CrystalReportViewer control. The print button is enabled on the CrystalReportViewer toolbar by default.
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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With