Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No way to tell if Print button was pressed on Preview?!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00042331
Message ID:
00042841
Vues:
40
Barbara,

You mean in the .Init of the .DataEnvironment? I tried that. After I previewed a report (without printing) my variable had been incremented twice. And I just this minute figured out why. Look at the code I found in the .Destroy method (it ain't mine).

*- [CONVERTER] Reset tables for compatibility
THIS.OpenTables
THIS.Init

Apparently this was placed in report after being converted from a previous version of FoxPro. I remmed it out, but sending the report to the printer didn't fire .Init from the preview mode a second time. If it had, we'd know that the user had clicked the print button. Sigh.

Oh well, everyone have a nice weekend.

George

>What about putting the variable change in the Report INIT? That's only executed once....
>
>Barbara
>
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform