Converting crystal report to PDF
I want to present crystal report contained in a webpage as a PDF
document.
There are two ways to do it:
using the functionality of CrystalReportViewer's toolbar - this
toolbar provides a button, which does exactly that. However, to use
this approach you would have to actually display the crystal report on
the page.
I don't wish to display the crystal report on the page instead
programmatically convert the Crystal Report object into a PDF document
using the Crystal Reports API and show for download option.
I cannot use Report document class which has option to Export, my
reports are not static they are brought from the crystal enterprise
server during runtime like in crystal enterprise.
ISCRReportSource myISCRReportSource = null;
// get handle to report
sKey = "ce_reportobject_" + sGuid;
oInfoObject = (InfoObject)Session[sKey];
// show report viewer
myISCRReportSource =
CrystalEnterpriseBP.setReportSource(hashProps,sReportId);
crystalReportViewer.ReportSource = myISCRReportSource;
Now istead of binding to crystalwebviewer control i wish to
converttopdf and popup download file option.
Any suggestions for same appreciated.