Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing using ???
Message
From
06/10/2000 12:32:51
 
 
To
06/10/2000 12:25:24
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00426027
Message ID:
00426031
Views:
27
>In VFP 6.0,I have a program that prints to an intermec 3400 label printer using ??? in order to send special printer codes to the printer. However, the labels spool but do not print until you exit the program. This method was used by a previous programmer to generate the labels because the label layout could not be controlled using a standard report form.

After sending the last print code to the Intermec, you need to close the Windows print queue to force it to print; the following works:

SET PRINTER TO NUL:
EJECT
SET PRINTER TO

This switches VFP's print assignment to a new device (I used NUL:, the bit bucket); sending a character to it will ensure that the previous queue is released, and issuing EJECT resets VFP's internal line and column settings; finally, reassign the printer to the default device.
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