Export crystal report directly to PDF

  • Thread starter Thread starter David
  • Start date Start date
D

David

I have a web app that I use crystal reports in. When a user selects
to run a report, I want to run the report and have it open in PDF
directly without going to the viewer and then making the user click
through the process.

I need some code examples.

Here is what I have so far

protected CrystalDecisions.Web.CrystalReportViewer
CrystalReportViewer1;
protected ReportClientDocument m_crReportDocument;

farther down

object path = ReportPath;
m_crReportDocument.Open(ref path,1);
m_crReportDocument.DatabaseController.logon("username","password");
m_crReportDocument.PrintOutputController.Export(CrReportExportFormatEnum.crReportExportFormatPDF,0);

Not sure what to do from here.
 
Back
Top