Hi all,
I am a newbi in programming palm os and I have to solve printing a barcode with the printer dpu3445-20 and CodeWarrior 8.X.
The generation of the EAN-13-barcaode is successfull made. But I am not able to send the funktion code over the irda to the printer.
Anybody knowing how I must send the escape codes to the printer.

I've tried it with the following way but it does not work:

//sEANohne carries the Barcode

StrPrintF( s, "\035k%s\377\n\0",sEANohne);
t.Send(0,s); // sending the code to the IRDa-Port

The documentation of the printer tells me the following:

GS + "k" + n + DATA Print bar code

Code 1DH + 6BH + n + DATA 0?n?FFH

I also tried:
// 1D(H) = 29 (10)
// 6B(H) = 107 (10)
StrPrintF( s, "\29\107\2%s\n\0",sEANohne);
t.Send(0,s); // sending the code to the IRDa-Port


Function Selects a bar code system and prints a bar code.
n: Bar code system
n Function
0 UPC-A
1 UPC-E
2 JAN13(EAN)

Anyone alble to help me solving this problem.
with thanks
--
Ralph Nawratil

P.S.: Please excuse my terrible english but I've done my very best :)


--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to