Export to PDF using CRAXDRT

CrystalWizard
04-19-2004, 12:34 PM
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?

MKoslof
04-19-2004, 02:18 PM
What version of Crystal Reports are you using? If you set the Import to True (the user is prompt to choose their own parameters) does it work? And try this:



Report.ExportOptions.FormatType = crEFTPortableDocFormat
Report.ExportOptions.DestinationType = crEDTDiskFile
Report.ExportOptions.DiskFileName = "c:\test.PDF"
Report.ExportOptions.PDFExportAllPages = True
Report.Export (False)

CrystalWizard
04-19-2004, 03:30 PM
I'm using version 8.5 and no, even if it prompts the user, it still breaks. I'm beginning to believe its a .dll issue and am currently downloading a service pack that supposedly eliminates the problem. The most recent service packs can be found here

http://support.businessobjects.com/fix/hot/si75/

for anyone that may run into this prob.

Thanks for the suggestions and I will try if this doesn't work.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum