Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE error with crystal reports
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00150710
Message ID:
00150783
Views:
20
Thanks, I found it. Since I spent some time looking for it. I am posting
the code here again for anybody that may care. I guess this error can be treated just like any other VFP error, so an ON ERROR is all I needed.


WITH ThisForm
* Set the report name
.oleCrystal.ReportFileName = "MyReport.RPT"
* Set the destination
.oleCrystal.Destination = 1
* Set the window title
.oleCrystal.WindowTitle = "My Report"
* Cancel the error handler to avoid a bug in Crystal Reports ActiveX control.
* This bug causes and OLE error when the user cancels the report
lcOnError = ON("ERROR")
ON ERROR *

* Activate Crystal Reports
.oleCrystal.Action = 1

* Reset the error handler
ON ERROR &lcOnError.
Previous
Reply
Map
View

Click here to load this message in the networking platform