- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing font size on dot-matrix printer
Operating System - HP-UX
1820261
Members
3057
Online
109622
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2001 03:41 PM
тАО05-02-2001 03:41 PM
Changing font size on dot-matrix printer
Hi,
I have a address label which is printed on an Epson LQ-2080 dot matrix printer from Oracle Apps 11.03 on HP-UX.
These labels require a large font size. Is there anyway I can change the font size on the printer for this report by sending some escape sequences (and set it back to the normal after the job is complete) ?
Please guide.
Thanks,
Sunil.
I have a address label which is printed on an Epson LQ-2080 dot matrix printer from Oracle Apps 11.03 on HP-UX.
These labels require a large font size. Is there anyway I can change the font size on the printer for this report by sending some escape sequences (and set it back to the normal after the job is complete) ?
Please guide.
Thanks,
Sunil.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2001 04:26 PM
тАО05-02-2001 04:26 PM
Re: Changing font size on dot-matrix printer
You might have better luck posting your query at support.oracle.com.
Good Luck, Clay
Good Luck, Clay
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2001 04:51 PM
тАО05-02-2001 04:51 PM
Re: Changing font size on dot-matrix printer
If you want to set up a special printer (which might be the same physical printer as another) there is a fairly simple way.
Create a new printer (e.g. myprinter). Then cd to /var/spool/lp/interface. The file you want to edit is either myprinter or model.orig/myprinter depending on the interface script you start with.
Somewhere in the interface, you will find a loop (look for $copies) where the input file
is cat'ed to a device.
You need to create a temporary file to set the printer and a temporary file to reset the printer. I don't know what the sequences are for your printer but the idea is something like this:
TDIR=${TMPDIR:-/var/tmp}
T1=${TDIR}/P${$}_1.cmd
T2=${TDIR}/P${$}_2.cmd
#T1 set up the printer
echo "\033\c" > $T1
echo "0\033CD\c >> $T1
echo "\033P\c" >> $T1
echo "\022\c" >> $T1
# now build T2 to reset the printer; I'll just do a Formfeed
echo "\014\c" > $T2
now within the loop I mentioned above:
we will cat $T1 $XFILE $T2 | some command
where $XFILE is the input file
when the loop is do rm -f $T1 $T2
If you can find the proper printer sequences
and I didn't confuse you too much, this should work.
Hope this gets you started, Clay
Create a new printer (e.g. myprinter). Then cd to /var/spool/lp/interface. The file you want to edit is either myprinter or model.orig/myprinter depending on the interface script you start with.
Somewhere in the interface, you will find a loop (look for $copies) where the input file
is cat'ed to a device.
You need to create a temporary file to set the printer and a temporary file to reset the printer. I don't know what the sequences are for your printer but the idea is something like this:
TDIR=${TMPDIR:-/var/tmp}
T1=${TDIR}/P${$}_1.cmd
T2=${TDIR}/P${$}_2.cmd
#T1 set up the printer
echo "\033\c" > $T1
echo "0\033CD\c >> $T1
echo "\033P\c" >> $T1
echo "\022\c" >> $T1
# now build T2 to reset the printer; I'll just do a Formfeed
echo "\014\c" > $T2
now within the loop I mentioned above:
we will cat $T1 $XFILE $T2 | some command
where $XFILE is the input file
when the loop is do rm -f $T1 $T2
If you can find the proper printer sequences
and I didn't confuse you too much, this should work.
Hope this gets you started, Clay
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP