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