Skip to Content
0
Former Member
Sep 12, 2011 at 04:13 PM

Exporting report based on a file (.rpt)

289 Views

Hi

Not sure how to do this:

I have a winforms app with a Crystal Viewer on a Form. I load the ReportSource from a file

cryViewer.ReportSource = "C:\CryReport.rpt"

for instance.

What I want to do once the report is loaded and possibly refreshed by the user is to export the report to PDF/Excel/Word etc.

I have done this before with reports that are generated with a Crystal Report Class (reports embedded in the WinForm application) by setting up the ExportOptions and using the Export() function as is well documented everywhere.

I can't seem to work out how to Export if the Viewer has it's report originally brought in from a file.

Any ideas anyone?

Thanks in advance,

Julian