CrystalWizard
04-19-2004, 11:34 AM
I keep running into an exporting problem while trying to export to PDF. I know this is a frequent problem but I can't seem to find a straight answer. My code is fine
Set appl = New CRAXDRT.Application
Set rep = appl.OpenReport("c:\NameofReport.rpt")
rep.ExportOptions.DiskFileName = "c:\Test.PDF
rep.ExportOptions.DestinationType = 1
rep.ExportOptions.FormatType = crEFTPortableDocFormat
rep.Export False
But breaks on rep.Export False with error No = -2147190908 Failed to export to report. Works fine with any other format(CSV,XLS, etc)
Any Ideas?
Set appl = New CRAXDRT.Application
Set rep = appl.OpenReport("c:\NameofReport.rpt")
rep.ExportOptions.DiskFileName = "c:\Test.PDF
rep.ExportOptions.DestinationType = 1
rep.ExportOptions.FormatType = crEFTPortableDocFormat
rep.Export False
But breaks on rep.Export False with error No = -2147190908 Failed to export to report. Works fine with any other format(CSV,XLS, etc)
Any Ideas?