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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Direct printing in 2.6/XP

Status
Not open for further replies.

Newtonm

Programmer
Nov 8, 2001
39
CA
Our client has upgraded his POS check out to XP from 9x. We send escape sequence and print direct to port using this code...
SET CONSOLE OFF
SET DEVICE TO PRINT
SET PRINTER TO
SET MEMOWIDTH TO 60
??? " "
??? CHR(27)+CHR(64) && CLEAR PRINTER BUFFER AND RESET
ROW = 1
COL = 0
@ ROW,COL SAY DATE()...etc.

We get a GPF on foxw2600.esl and Foxpro quits.

Works perfectly in all 95/98 boxes.
Any suggestions.
TIA



Richard Myers
Four Letter Software Inc.
 
Try using:

SET CONSOLE OFF
SET PRINTER TO NAME "Whateveritis"
SET PRINTER ON
SET DEVICE TO PRINT

Maybe try using ?? instead of ??? too.
Dave S.
[cheers]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top