Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spooled PRINTJOB does not end
Message
From
26/04/1998 08:27:08
 
 
To
25/04/1998 05:03:19
Raul Davila
Davila Programming Services
Toa Alta, Puerto Rico
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00094866
Message ID:
00094958
Views:
19
>Hi all:
>
> After some work I managed to print a small one page report using ??
>
> SET PRINT ON
> SET CONSOLE OFF
> SET DEVICE TO PRINTER
> PRINTJOB
> ...
> Send everything using ??
> ...
> ENDPRINTJOB
>
>Problem 1:
> Output is still being shown in the active window. As if SET CONSOLE was ON
>

Try using '???' instead of '??' - this will also avoid character translation problems..

>Problem 2:
> When I look at "Print Manager" the job is still there!
> If I choose Purge Print Jobs from the menu it gets deleted, but then I go back to Fox and run the program again and it no longer prints! It still shows it in the active window though.
> Using VFP5

I haven't tried it in a while, but the following worked under FPD 2.5 to release print jobs. Add the following code after the ENDPRINTJOB:

SET PRINTER TO NUL
??? CHR(0)
SET PRINTER TO
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform