Hi,
it's possible using vbs to export a report (rpt file) to pdf?
I have this example
Set appl = CreateObject("CrystalRuntime.Application")
Set rep = appl.OpenReport("C:\test.rpt", 1)
rep.EnableParameterPrompting = False
rep.EnableParameterPrompting = False
rep.ExportOptions.DiskFileName = "C:\test.rtf"
rep.ExportOptions.DestinationType = 1
rep.ExportOptions.PDFExportAllPages = True
rep.ExportOptions.FormatType = 4
rep.Export False
but the error is "ActiveX cannot create object"
THANKS
it's possible using vbs to export a report (rpt file) to pdf?
I have this example
Set appl = CreateObject("CrystalRuntime.Application")
Set rep = appl.OpenReport("C:\test.rpt", 1)
rep.EnableParameterPrompting = False
rep.EnableParameterPrompting = False
rep.ExportOptions.DiskFileName = "C:\test.rtf"
rep.ExportOptions.DestinationType = 1
rep.ExportOptions.PDFExportAllPages = True
rep.ExportOptions.FormatType = 4
rep.Export False
but the error is "ActiveX cannot create object"
THANKS