Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export 'CANCEL' - Crashes the application.

Status
Not open for further replies.

CrystalReports9

Programmer
Jan 10, 2003
124
US
Doing export the report into pdf file through programatically.

During export if i click on the CANCEL button the application get crashed.

How to handle the export 'CANCEL' programatically?
 
Suppose it might depend on your programming language, the Crystal version, and the Crystal API (RDC, or?)?

Try posting technical information.

-k
 
CR Dev. Edition 9.2.3

Using RDC

Power Builder 9

Oracle 9i

Code
--------
ole_Report.ExportOptions.DestinationType = 1
ole_Report.ExportOptions.DiskFileName = "c:\Business_"+STRING(gl_sesson_id)+".pdf"
ole_Report.ExportOptions.FormatType = 31
ole_Report.Export(False)
 
Thank you

I find out the solution by using TRY CATCH (powerBuilder)

TRY
ole_Report.Export(False)
CATCH
Return -1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top