>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.