Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print dialog
Message
 
 
To
27/06/2007 09:34:53
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01214125
Message ID:
01235986
Views:
20
>I know 1 solution, sorry if somebody else already say it.
>Create a new public variable printfinished=.F., put on the last page of the report some code to change the printfinished to .T., when returning change the status of the document to printed if printfinished is .T., then other printing of the document will be marked as copy of the original.

Hi,

1. You don't have to make the variable public, even local variable will work defined prior to calling report form

2. If you do a preview, you need to know, if the report was printed from the preview or not.

You can do it by putting this expression in the summary OnExit
_VFP.SetVar('PrintFinished', sys(2040) = '2')
There is also a more complex way for VFP9 using Report Listener.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform