Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Hello Nick
You are right. I can print fields like thisform.anyvar, but i cannot use them
in the init event of the report's dataenvironment because VFP says The object is not contained in the form (El objeto no esta contenido en el form)
My idea is that the user types some range or criteria in the form and
i filter records after opening tables (during init event of the report's dataenvironment) and before printing the report.
Finally, I am using normal memvar in the form's fields and releasing them during the form's unload event. If i don't do it, the variables become public and i don't like it.
This way, i can use those variables anywhere in the report and its dataenvironment's events.
Am i right? I hope you understand me. You all are very kind.
Thank you very much
Juan Carlos
>
>If you run the report from the form (or any form control code) THISFORM does not loose the scope. I use this approach all the time.
>
>Nick
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement