newbie question.
I wish to run and export a crystal report (.rpt) file on disk file. I try to implement an exemple I saw on this forum, but I got this. (this exemple is for a doc, I wish to save as .rpt)
I do not seems to have the proper syntax.
Error I am receiving, "Invalid file name"
Thanks all.
option Explicit
Dim oCRApp
Dim oReport
Set oCRApp = CreateObject("crystal.CRPE.Application"
Set oReport = oCRApp.OpenReport("F:\creport\report.rpt"
oReport.ExportOptions.FormatType = 14
oReport.ExportOptions.DiskFileName "F:\report\Report.doc"
oReport.ExportOptions.DestinationType = 1
oReport.Export False
I wish to run and export a crystal report (.rpt) file on disk file. I try to implement an exemple I saw on this forum, but I got this. (this exemple is for a doc, I wish to save as .rpt)
I do not seems to have the proper syntax.
Error I am receiving, "Invalid file name"
Thanks all.
option Explicit
Dim oCRApp
Dim oReport
Set oCRApp = CreateObject("crystal.CRPE.Application"
Set oReport = oCRApp.OpenReport("F:\creport\report.rpt"
oReport.ExportOptions.FormatType = 14
oReport.ExportOptions.DiskFileName "F:\report\Report.doc"
oReport.ExportOptions.DestinationType = 1
oReport.Export False