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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Error message

Status
Not open for further replies.

EscapeUK

Programmer
Jul 7, 2000
438
GB
Using the following go code which fine unless export location has wrong syntax in it eg: my*file:.rpt How do I supress the following crystal error message Crystal Reports ActiveX designer: Invaild Directory:
Supressing the error is fine as it all get written to a log fine anyway:

With oExportOptions
.UseReportDateFormat = True
.UseReportNumberFormat = True
.DestinationType CRAXDDRT.CRExportDestinationType.crEDTDiskFile
.DiskFileName = cExportFileName
.FormatType = crEFTRichText
.RTFExportAllPages = True

End With

Call oReport.Export(False)
 
Use objReport.MorePrintEngineErrorMessages = False to suppress Crystal Error dialogs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top