Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing in vfw 7.0

Status
Not open for further replies.

engan

Programmer
Jul 15, 2001
53
ID
Hi, I have some problem printing in vfw. It seems that the output is printed after I close/Exit My Application (EXE).
Here Is my sample statement :
SET DEVICE TO printer
SET PRINTER ON
SET PRINTER FONT 'Courier',14 STYLE 'BI'
@PROW()+1,1 SAY 'Test First Line'
@PROW()+1,1 SAY 'Test Second Line'

Is There a way to fix this problem ?

Thanks
EngAn
 
EngAn,
If you must use this construct in VFP 7.0, then make sure you "flush" the print queue. Usually:
SET PRINTER OFF
SET PRINTER TO
SET PRINTER TO
works.

Rick
 
engan:

Rick is right, of course. There is also the EJECT command that allows the program to issue a formfeed when appropriate.

Al
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top