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

Can NOT print text file with landscape format

Status
Not open for further replies.

microsky

MIS
May 7, 2001
33
Hi,
Our OS is Solaris 2.6.
I want to print a text file to a HP5100 printer using command "lp -olandscape -d printer filename" , but the Solaris told me:
Warning: printer not configured to handle all lp options:
ignoring: -o landscape

Dose any body can help me how to troubleshoot this issue?

Thanks!
 
your printer is a remote/networked printer; you have an entry in /etc/printers.conf (or NIS or NIS+ map) for this printer; the -o options are just for locally attached printers, this means you have to define the printer as a local printer unsing the netstandard interface (which makes it a remote/networked printer)

Workaround: filter trough a postscript filter (eg. postprint) and send the postscript to the printer

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Hi Franz,
Thanks for your reply.
I checked, we have a postprint filter, but how to use this filter when print a text file to remote printer? Please give a sample.
-------------------------------------
# lpfilter -f postprint -l
Input types: simple
Output types: postscript
Printer types: any
Printers: any
Filter type: slow
Command: /usr/lib/lp/postscript/postprint
Options: PAGES * = -o*
Options: LENGTH * = -l*
Options: MODES group = -n2
Options: MODES group\=\([2-9]\) = -n\1
Options: MODES portrait = -pp
Options: MODES landscape = -pl
Options: MODES x\=\(\-*[\.0-9]*\) = -x\1
Options: MODES y\=\(\-*[\.0-9]*\) = -y\1
Options: MODES magnify\=\([\.0-9]*\) = -m\1
Options: MODES catv_filter = -I


Best Rgs,
wangy
 
if you need landscape printing just one I suggest to run

/usr/lib/lp/postscript/postprint -pl file | lp -d printer

if you want to create a landscapeprinter you create a filter and set the -pl Option inside (I cannot give a sample since I haven't setup this for a long time; If you need one I can lookup a infodoc at sunsolve.sun.com)



Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
look at this and replace unix2dos with postprint -pl

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
there are a lot of ASCII to Postscript Filters but postprint will generate a Postscript looking like an ASCII Print;
mp is great, I like a2ps (freeware), too!

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Hi Franze,

But my printer did NOT support PostScript language, it just support PCL language, is there existing any other way can print a file with landscape format?

Best Rgs,
WangYun
 
yes, look at my first post; define printer as a locally attached printer using netstandard interface, here is an example; I'm not sure if your printer supports this (landscape option). What Printer Make and Model do you have? Is it Network attached or do you have a printer box?

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top