Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more: (untagged)
How to print any text file in landscape mode from dos prompt ?

I have tried prn command but it prints in portrait mode.
printer has default set to landscape mode.

Please Help !!!
Posted

Not an easy one!
The Dos Print command is not very clever, and doesn't use a driver, it sends data directly to teh printer port you specify. Unfortunatly, that means that:
a) it won't work at all with many modern printers, as they do not supply suitable connections
b) it is very difficult to do "clever stuff" as you have to output in the printer's language - which is not the same for all printers (hence why you need a driver specific to your model).

A quick Google turned this up though: Dosprn[^] - it claims it does what you want, but I haven't tried it. It's free though, so it may be worth your looking at.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 9-Mar-11 16:06pm    
I don't even know if you're right or not. My answer may look silly, but in real situation I think it's more useful, don't you think so?
--SA
wizardzz 9-Mar-11 16:50pm    
Sorry SAK, beginner or not, it is a valid question and Griff provided a valid answer.
Don't print from DOS. As a beginner, you have way more important tasks to spend your very valuable time at.
Do you need an advice on that?
—SA
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900