Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close preview window after printing
Message
 
To
21/10/2008 06:08:31
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01356003
Message ID:
01356344
Views:
30
>I use modeless report preview:
>
>REPORT FORM myform PREVIEW NOWAIT NODIALOG
>
>
>When user prints from preview by clicking printer button in toolbar, preview window remains open.
>How to force preview window to close automatically if report is printed from preview ?

One of the solutions is like this:

1. create a program, say closeafterprint.prg:
IF wexist("Printing...") AND WEXIST("Print Preview")
RELEASE WINDOWS "Print Preview"
endif
2. add a field to your report, and with expression
closeafterprint()

Good Luck
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform