Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CR 9 Modify/Save .RPT with VB6

Status
Not open for further replies.

ClarkJeff

Programmer
Feb 28, 2002
46
0
0
US
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
 
Update...
I don't necessarily need to use the ActiveX viewer, just a
viewer to be able to view, export, save, etc.

Thanks.
Jeff Clark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top