Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending Variables to Reports
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00221356
Message ID:
00221459
Vues:
11
>>>The report should recognize
>>>
>>>Thisform.mypem...
>>
>>Hi Rich,
>>I like the approach, but it doesn't work for me. In the report's field object I tried thisform.myprop, activeform.myprop, & _Screen.myform.myprop W/O success.
>>
>>I didn't understand the other responder's use of the data environment to get at the form's properties.
>>
>>Is there a way to scope to the form from within the report? or Must I use a global var as others have suggested? Gee, I must be missing something simple here.
>
>Er, I'm Bruce...I have dozens of reports and no Publics, so I know it can be done :) Using Thisform will work from a form, generally, and also using locals in a custom method where a report is launched will work...however, if you run reports from outside a form - from menu, toolbar, there can be problems, of course...
>
>Where are you "launching" the reports from, exactly? For example, if you put a button on a form that says "Print" it should pick up any currently scoped property from the form or a local from the button for the report...

I use thisform.control.property all the time too. Especially in cases when the form performs some complicated financial calculations to show in controls, and you need to show them in the report too, this way eliminates the repeating of those calculations because the report can address already calculated values directly from the form controls.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform