Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send Control Codes
Message
From
20/10/1998 21:42:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Send Control Codes
Miscellaneous
Thread ID:
00148742
Message ID:
00148742
Views:
41
I need to send control codes to a printer running in WIN NT 4, using VFP/ and or FPE 2.6.

The help states that I can use _PSCODE and _PECODE and then PRINTJOB .. ENDPRINTJOB

I have tried this:
SET PRINTER ON
_PECODE = CHR(27)+"i" && ESC i
PRINTJOB
?? "HULLO"
ENDPRINTJOB
SET PRINTER TO

ALL I get is the codes PRINTED on the paper but no effect.
The Help also says that _PECODE is old and to use the report writer instead.

I created a report with a field in the header with the value CHR(27)+"i"

ALL this does is print out the code not send them to the printer.
Can anyone tell me how this sending of codes is done.

I need to send a code to a printer (NT) to clear its buffer and then print a single page report using REPORT FORM...

Thanks

Bernard
Reply
Map
View

Click here to load this message in the networking platform