Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Issues with Crystal Report Viewer Class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Divers
Thread ID:
00754470
Message ID:
00754478
Vues:
17
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform