How to print a text file in landscape


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to print a text file in landscape
# 1  
Old 06-14-2002
Question How to print a text file in landscape

Could someone tell me how to print a text file in land scape.

Thanks
# 2  
Old 06-16-2002
Different printer types may take different parameters. You can look at the appropriate printer driver script and see the options it looks for. For HP Laserjet, I use:
Code:
lp -olandscape -ofp12 -ovsi5.45 -otl66 -ohsi9.5 myfile

You can also embed escape sequences into a text file.
Jimbo
# 3  
Old 06-17-2002
Jimbo, thanks a lot! I'll give a try.

yun
# 4  
Old 06-17-2002
Hi, Jimbo:

My printer is the same as yours, so it print great! My question is: what's the meaning of "-ofp12 -ovsi5.45 -otl66 -ohsi9.5" mean? Because I find the print out fonts is smaller than it was in the regular printing. Thanks a lot!

yun
# 5  
Old 06-20-2002
Each of those options cause the lp command to generate an appropriate escape sequence to the printer to change something about the setup, such as page orientation, font, maximum lines per page, horizontal spacing increment, vertical spacing increment, etc.

Typically, landscape reports involve lines up to 132 characters wide, which is why we have to switch it to the smaller font. Beyond that, you can use "landwide" which is even smaller font and can handle at least 160 characters wide.
Jimbo
# 6  
Old 06-20-2002
Hi, Jimbo,

Thank you so much!

yun
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Match text to lines in a file, iterate backwards until text or text substring matches, print to file

hi all, trying this using shell/bash with sed/awk/grep I have two files, one containing one column, the other containing multiple columns (comma delimited). file1.txt abc12345 def12345 ghi54321 ... file2.txt abc1,text1,texta abc,text2,textb def123,text3,textc gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies

2. UNIX for Dummies Questions & Answers

Reading Xml file and print the values into the text file in columnwise?

hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file <sequence> <Filename>aldorzum.doc</Filename> <DivisionCode>US</DivisionCode> <ContentType>Template</ContentType> <ProductCode>VIMZIM</ProductCode> </sequence>... (4 Replies)
Discussion started by: sravanreddy
4 Replies

3. UNIX for Dummies Questions & Answers

Reading XML file and print the values in the text file using Linux shell script

hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file <sequence> <Filename>aldorzum.doc</Filename> <DivisionCode>US</DivisionCode> <ContentType>Template</ContentType> <ProductCode>VIMZIM</ProductCode> </sequence>... (1 Reply)
Discussion started by: sravanreddy
1 Replies

4. Shell Programming and Scripting

Print each paragraph in a text file into excel file

Hi, I have a below text file, which needs to be printed into attached excel file. Please help me. Thanks (4 Replies)
Discussion started by: prash358
4 Replies

5. Shell Programming and Scripting

Search text from a file and print text and one previous line too

Hi, Please let me know how to find text and print text and its previous line. Please don't get irritated few days back I asked text and next line. I am using HP-UX 11.11 Thanks for your help. (6 Replies)
Discussion started by: kamranjalal
6 Replies

6. UNIX for Dummies Questions & Answers

printing an xml file in landscape

Hey all, This is probably a stupid question but I can't seem to find the answer I need anywhere. I have an XML file that I need to be able to print in landscape because the text goes off the page when I try to print in portrait. I can't find a way to do this using lp. I understand, from... (1 Reply)
Discussion started by: MaristBrandi
1 Replies

7. Shell Programming and Scripting

Print only certain lines from a text file

Hi all, I have a text file and I want to clean up the file by only print those lines start with the date. Is there anyway I can do that?  Thanks CT (1 Reply)
Discussion started by: CamTu
1 Replies

8. UNIX for Dummies Questions & Answers

landscape print in Liunx

Hello All, I have been looking for a way to print a text file in landscape format with out sucess. I have also looked at thread post by yxiao. but this does not work for me. Any help would be greatful. I have redhat 7.2 and conneted to an HP 4100N printer. THANKS (2 Replies)
Discussion started by: larry
2 Replies

9. UNIX for Advanced & Expert Users

I print reports that are landscape

I print on an HP Laserjet 5si and HP 8000 Laserjet. We print reports in landscape and when the reports are printed the font size is too big and some of the report is cut off. Is there any other options that I could try to use to correct this. The printers are set up correctly. I just need to... (4 Replies)
Discussion started by: skammer
4 Replies
Login or Register to Ask a Question