Skip to Content
0
Former Member
Mar 04, 2009 at 09:49 PM

Crystal report export option - bahavior with vb6 exe and dll

659 Views

Hi,

I am having these lines of sample code to export a crystal 11 report data to pdf format. This works fine when executed by a vb exe but when we try the same code with vb 6 activex dll, it fails on the line with command to export without any errors.

When tried using these lines of code in asp page, it fails with error code 70, permission denied. Please advice.

CrystalReport.ExportOptions.DiskFileName = "C:\temp\trial.pdf"

CrystalReport.ExportOptions.HTMLFileName = "C:\temp\trial.pdf"

CrystalReport.ExportOptions.DestinationType = crEDTDiskFile

CrystalReport.ExportOptions.PDFExportAllPages = True

CrystalReport.ExportOptions.FormatType = crEFTPortableDocFormat

CrystalReport.Export false

Thanks,

Sunil Tayi