Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No way to tell if Print button was pressed on Preview?!
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00042331
Message ID:
00042841
Views:
38
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform