Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close preview window after printing
Message
From
23/10/2008 04:20:37
 
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:
01356490
Views:
24
>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 ?
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform