Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Yet another printer question
Message
From
07/02/2006 10:36:32
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Yet another printer question
Miscellaneous
Thread ID:
01094274
Message ID:
01094274
Views:
58
Hi all,

Why does the printer ejects a page when I send this ESC codes to it? We are using the LQ-570e printer. But even when selecting a laser printer, a form feed still occurs.
cPrinter = getprinter()
if !empty(cPrinter)
   set printer to name (cPrinter)
   set printer on
   * Change the font to COURIER
   * This line causes the printer to issue a form feed
   ??? chr(27)+chr(107)+'2' && ASCII ESC k n; where n=2 for Courier.
   ? "Hello world"
   set printer off
   set printer to
endif
ramil
~~ learning to stand still
Next
Reply
Map
View

Click here to load this message in the networking platform