I'm currently exporting PDF, DOC, etc. files from .RPT files with VB6. I'd like to be able to use the ActiveX viewer, which I understand looks at the .RPT file directly. I want to be able to programmatically change parameters on a .RPT, save the report WITH DATA to a new file, then view the new STATIC report via the viewer. The report will be generated off-hours due to the amount of the data and the user will not be able to refresh, change parameters, etc. I'm currently using:
crxExportOptions.FormatType=crEFTCrystalReport
crxExportOptions.DiskFileName="newfile.rpt"
crxReport.DiscardSavedData
crxReport.EnableParameterPrompting=False
'code to set parameters
crxReport.ReadRecords
crxReport.Export False
I expected it to create a newfile.rpt file with the new data saved, but when I try to open it in CR, I get an invalid report error.
Any clues?
Thanks.
Jeff Clark
crxExportOptions.FormatType=crEFTCrystalReport
crxExportOptions.DiskFileName="newfile.rpt"
crxReport.DiscardSavedData
crxReport.EnableParameterPrompting=False
'code to set parameters
crxReport.ReadRecords
crxReport.Export False
I expected it to create a newfile.rpt file with the new data saved, but when I try to open it in CR, I get an invalid report error.
Any clues?
Thanks.
Jeff Clark