How to make Crystal Report print directly to printer without exporting to PDF?
14,125
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);
Author by
satyender
Updated on July 25, 2022Comments
-
satyender almost 2 years
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.....
-
Sain Pradeep over 8 yearsplease add source code to your question, which you are using .
-
F0r3v3r-A-N00b about 5 yearsI couldn't find PrinterName property of PrintOptions