Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close preview window after printing
Message
 
À
21/10/2008 06:08:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01356003
Message ID:
01356344
Vues:
29
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform