Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Issues with Crystal Report Viewer Class
Message
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Miscellaneous
Thread ID:
00754470
Message ID:
00754478
Views:
22
>3) If I remove the MessageBox(), I get a run-time error stating OLE may be corrupt?

I don't remember if this is an issue in VFP6 or not, but for me and VFP7 I had to add the following code to make the viewer object behave properly in our application (had to do with clearing pending Windows events):
          oForm.CrystalViewer.ViewReport()
          
          WAIT "" TIMEOUT 2          && In VFP7, this gives the Crystal Viewer a chance to have its
                                     && IsBusy property get to be false.
          
          DO WHILE oForm.CrystalViewer.IsBusy
          
             DOEVENTS
             
             WAIT "" TIMEOUT 1
             
          ENDDO
          
          WAIT CLEAR
          
          oForm.Show()
Hope that's helpful.

Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Previous
Reply
Map
View

Click here to load this message in the networking platform