Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal Reports - CRViewer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Crystal Reports - CRViewer
Divers
Thread ID:
00629749
Message ID:
00629749
Vues:
48
I'm running into a weird problem with the CRViewer control that I can't seem to fix. I'm opening a report using the RDC, then programmatically iterating through the ParameterFields collection and passing it some variables. The variables DO get passed correctly (I can check it's value immediately after setting it and it's set to the correct value). As a test, I dropped the parameter field onto the report so I could see it's value. If I just print the report, it shows the value. If, instead, I create a form and use the CRViewer control to view the report, the field is NOT displayed. Actually, this worked a few times, but then stopped.

If I walk through the code with the debugger, it displays the field on the preview form. I assumed this was just a timing issue so I've been putting wait states (and DOEVENTS) into the code hoping I could fix it. No such luck. I've also issued a SYS(2333, 1) thinking it might help. Nope.

Has anyone run across this before? I know I can work around it by passing the variables in my report cursor, but it bugs me that this doesn't work.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform