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

Print from AIX through network printer to PrinTronix printer

Status
Not open for further replies.

gah

Programmer
Apr 12, 2002
8
US
I have a PrinTronix printer that I am wanting to send data to via a network print server (so my Operator only has to look in one place for reports). The problem is I need to code in special characters so that the printer knows what CPI to use. Where do I go to add these special codes?

Thanks GAH

 
hi,
know which escape sequence tell to printer the right
CPI, is not an AIX problem: the sequence is OS indipendent.

Thr problem for AIX may be how to send that sequence to printer, but we dont know them.

You can discover it, from your printer docum.s or by Google

You say "my Operator only has to look in one place" :
probably in that printer come out other report; from
where ? probably from Windows env.
If this is true, you have almost other 2 strategies to
acheive results:

1) use Windows shared printer from AIX
2) discover by Windows the sequence

For (1) see faq52-3563

For (2) make the follow :

Using Wordpad (no Word or Notepad) create a simple 1-row document, and write inside eg. ABCDE

choose Page setup and choose CPI = x , then Print, but
click "Print to file" before press OK; the system will prompt you filename, and choose try_x.prn

Repeat for CPI=x and name file try_y.prn, ecc.

Open these files using Wordpad or Word, and look for
differences in them: probably you can find the specific
command to set CPI for the printer; you can discover other important commands that you can use from AIX, using
pre filters in printers or embendig them in the file

cat Head YourFile Tail > NewFile
enq -P PrinTronix NewFile

bye
 
Hi,

U can build novell print server to use all dmp ,line printers and all printers which are not supported on aix.

regards

arvind
 
I know the escape sequence that needs to be sent to the printer, I just don't know where to code it on the AIX box so that when the printer is selected the AIX will send the proper escape sequence. Any ideas as to where to put the escape codes?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top