Thanks in Advance!!
The NNTP forums from Sybase - forums.sybase.com - are now closed.
All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).
Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.
There is a sample in the manuals - you need to convert the string
(unicode) into an ANSI blob with something like "toAnsi()".
Then write out file in binary mode.
PPB Development Manager
On 26 Sep 2003 15:44:52 -0700, "Mohit Chanana"
Reed I've read the example in manuals; my problem is that the file needs to
be written in LineMode and not in StreamMode. Here is the dilemma; we are
working on a Barcode Printer which needs a series of label formatting
commands to be sent to its com port as an ANSI file. When writing in
SteamMode PPB puts the whole chunk of data in one line ignoring CR's and
LF's. Hence we need LineMode to achive the desired resultset. Is it possible
to use ToAnsi() to write to a LineMode file?
Aahh, Sorry my fault.... I was using FromUnicode() instead of ToAnsi().
Thanks for your help.
So you are printing to your barcode printer from
your PPB application?
That is something people would like to hear about.
PPB Develoment Manager
On 29 Sep 2003 09:16:09 -0700, "Mohit Chanana"
We are using Zebra Cameo 3 (Bluetooth) barcode printer with our application.
The Printer expects label formatting commands to be sent thru Com Port (In
case of BlueTooth use COM8:) in an ANSI formatted file. The label printing
commands are very easy to understand and are supplied on a programmers
manual with the printer.
Typical Example of a Label Ansi File
! 0 200 200 839 1 // Sets the Resolution and
Size of Label
CONTRAST 0 // Sets Print Contrast
TONE 0 // Sets Ink Tone
SPEED 3 // Sets Print Speed
COUNTRY USA // Sets Language Selection
T 4 0 14 30 Part 401RD4F57 // Prints text "Part 401RD4F57" (4 0
14 30 = Font Size X Y )
B 128 2 0 75 14 110 401RD4F57 // Prints Barcode "401RD4F57" (128 2 0 75
14 110 = BarcodeType Width Ration Height X Y)
BOX 0 10 520 230 1 // Draws a Box Around Text and
PRINT // Instructs Printer to