Last post Jan 23, 2015 04:02 AM by Summer - MSFT
Apr 08, 2014 06:52 AM|rashiddear|LINK
I am using Crystal Report 13 and trying to print a report. I setup my crystalreportviewer as bellow.
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" PrintMode="ActiveX"/>
When I press print button on CrystalReportViewer, it shows me Print to PDF export option with the following message. I want it to be print directly to the printer.
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)
Please help. thanks
Oct 22, 2014 04:11 AM|morefays|LINK
if You want to export crystal report as pdf then their is different technique what it is your problem can you explain more in detail .
you want to print the report on printer or want to show report as pdf on explore
Jan 23, 2015 04:02 AM|Summer - MSFT|LINK
Thank you for your post.
Please refer to the code below to export Crystal Report to PDF or other.
ReportDocument crystalReport = new ReportDocument();
ExportFormatType formatType = ExportFormatType.NoFormat;
formatType = ExportFormatType.WordForWindows;
formatType = ExportFormatType.PortableDocFormat;
formatType = ExportFormatType.Excel;
formatType = ExportFormatType.CharacterSeparatedValues;
crystalReport.ExportToHttpResponse(formatType, Response, true, "Crystal");
More details information:
Regards & Summer