Skip to Content
0
Former Member
Jun 29, 2007 at 12:54 PM

CRAXDDRT, report.export hangs

72 Views

Post Author: MaryProg

CA Forum: Exporting

Hi, I am using VS 2005, Data Access Application Block and Crystal reports X1 Release 2. Code hangs at crxreport.export. Tried using reportdocument, same problem with hanging happens at reportdocument.export.

Please assist with solution. Have to export reports to PDF urgently!

public crxapllication as craxddrt.application

Dim crxreport as new craxddrt.report

crxreport = crxapplication.NewReport

'crxreport = crxapplication.OpenReport(reportname, 1)

crxreport.ExportOptions.FormatType = CRAXDDRT.CRExportFormatType.crEFTPortableDocFormat

crxreport.ExportOptions.DestinationType = CRAXDDRT.CRExportDestinationType.crEDTDiskFile

crxreport.ExportOptions.DiskFileName = curFolder & myfile & ".pdf"

crxreport.DisplayProgressDialog = False

crxreport.PrintOut(False)

crxreport.Export()

Thanks

Mary