Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close preview window after printing
Message
 
 
À
23/10/2008 04:20:37
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:
01356496
Vues:
28
>>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()
>
>Than you.
>I did the following:
>
>in last group footer on exit expression added
>
>execscript("IF wexist('Printing...')"+chr(13)+"RELEASE WINDOWS 'Print Preview' "+ chr(13)+ "ENDIF")
>
>After printing from preview VFP9 SP2 crashes with exception
>
>Fatal error: Exception code=C0000005 @ 23.10.2008 11:17:12. Error log file: C:\myapp\algus\VFP9Rerr.log
> Called from - read_events line 0 { c:\myapp\algus\alguss.exe}
> Called from - alguss line 0 { c:\myapp\algus\alguss.exe}
>
>How to fix this ?

Why complicate with execscript? Can you make it with the external little program as Yuri suggested?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform