Printing extended ASCII

Hi All,

I'm trying to send extended ascii characters to my HP2055 as part of PCL printer control codes. What I want to do is select a bar code font, print the bar code and reset the printer to the default font.

Selecting the bar code font works good. Printing the bar code goes almost ok too.

Problem is printing the correct start and stop sequence with AIX. These start and stop sequence are extende ascii values (162 and 164) and these will not print with AIX.

The barcode I'm trying to print is

^[(2Y^[(s0p8.33h85v0s0b0T�ABCDEFGHJIK�

Where the characters in red are not prining correctly.

When I send the same stream from a windows system, the correct bar code (including the correct start and stop characters) are printed. This leads me to conclude that the problem might be AIX bound.[/COLOR]

Anyone struggled with the samen problem?

--Peter

Check what do you get with :

printf "\162\n"
printf "\164\n"
printf "\302\242\n"
printf "\302\244\n"

I did the following:

$ printf "\162\n"> ascii
$ printf "\164\n" >> ascii
$ printf "\302\244\n" >> ascii
$ printf "\302\242\n">> ascii

When I cat ascii I see:
r
t
¤
¢

When I print ascii (lp ascii) I see
r
t

Is your printer declared on a print server ?
If yes, which OS run the print server ?
Or is your printer a network printer ?
If yes, did you install your printer with the relevant (HP2055) PCL driver/model filter (from which OS?) ?

http://www8.hp.com/us/en/support-drivers.html

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=3662058&prodTypeId=18972&prodSeriesId=3662052&swLang=8&taskId=135&swEnvOID=2093\#1130

Find the relevant model script
http://www.hp.com/pond/modelscripts/index2.html

It is a HP2055 on a hpjetdirect.
It is created as a hpjetdirect: other: generic: ascii queue.
It is created on AIX 5.3.

So this printer is a network printer ?

If yes, then i think you may have recreate it properly on the server from which you are trying to print.

Is there any way to specify the model script to use for that printer in smitty ?