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

printer driver

Status
Not open for further replies.

dufduf

Programmer
Nov 11, 2009
3
0
0
PL
I'm trying to send epson fx printer code to the dot-matrix printer emulation epson fx using function:

char* cSendBuf = "\0x1bl\0x03"; //set left margin - ESC 1 n
RawDataToPrinter( L"\\\\AGO\\Oki ML 520 Elite (IBM)", cSendBuf, strlen(cSendBuf) );

And I don`t know where to put the text "sample text"? Just behind the code: the text does not print. Before the code: text will not be set to the column specified in the code.

char* cSendBuf = "\0x1bl\0x03\sample text";
char* cSendBuf = "sample text\0x1bl\0x03";

How to look like the text and write the code?
Thanks
 
I don't use the RawDataToPrinter function so maybe I'm not the best person to comment on this but I think I see an error in "char* cSendBuf = "\0x1bl\0x03\sample text";"

Try:
char* cSendBuf = "\0x1bl\0x03\\sample text";

James P. Cottingham
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top