Is there a web site that has code examples for using VB to run crystal reports. I am looking for the code to export a crystal report into MS word format or HTML
Thanks
Ps. A timely responce is greatly appreciated
Printable View
Is there a web site that has code examples for using VB to run crystal reports. I am looking for the code to export a crystal report into MS word format or HTML
Thanks
Ps. A timely responce is greatly appreciated
Hey Wookie... here is some Crystal code:
CrystalReport1.ReportFileName = "C:\Source.rpt"
'tell crystal to save the report to a file
frmQCFMain.CrystalReport1.Destination = crptToFile
'give crystal the filename...path AND report name"
frmQCFMain.CrystalReport1.PrintFileName = "C:\ExportedReports\Report.RTF"
'what kind of file to export to
frmQCFMain.CrystalReport1.PrintFileType = crptRTF
'GoForIT
frmQCFMain.CrystalReport1.PrintReport
-----------------------------------------
This example exports an RTF file...which is readable in Word...
Just change the PRINT FILE TYPE and DEST extention if you want something different!
Hope that helps!
~sam