------=_NextPart_000_01BC353F.83C57960
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
I often download large documents in .prn format. However when I print
these items it forces portrait format, even if I have the printer default
set as landscape. Is there a "/" switch that I can add to my command line
that will fix this. Currently I have a print.bat line that says...
copy %1 lpt1 /b
Thank you,
Brian Lacey
BKL...@msn.com
------=_NextPart_000_01BC353F.83C57960
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<html><head></head><BODY bgcolor=3D"#FFFFFF"><p><font size=3D4 =
color=3D"#000000" face=3D"EucrosiaUPC">I often download large documents =
in .prn format. However when I print these items it forces =
portrait format, even if I have the printer default set as landscape. =
Is there a "/" switch that I can add to my command line =
that will fix this. Currently I have a print.bat line that says... =
<b>copy %1 lpt1 /b </b><br>Thank =
you,<br>Brian Lacey<br>BKL...@msn.com</p>
</font></body></html>
------=_NextPart_000_01BC353F.83C57960--
Hi Brian,
You could simply read your files into Notepad/WordPad
or Word and print them, but since you asked, here's
a way to do it in DOS.
There isn't a 'switch' in DOS for landscape since not all
printers recognize the same code. You can do it
in a batch file though incorporating the Copy command
you alredy have with the printer codes.
Here's one example I did quickly for an HP LaserJet/deskjet.
(BTW, please post your messages in text w/o the HTML
coding, it just ends up in a pile at the bottom after
the automatic MIME conversion as you'll see below.)
You can clip the batfile out and run it once you've
changed the <esc> below to escape codes (Ascii 027)
[You can create an Esc code in DOS Edit using CtrlP+esc]
I wasn't sure if Esc codes stay in a usenet message or
mess it up, so I took the safe way out.
------rotate.bat-----------------------------------------------
@echo off
goto START
:---- start internal batch file documentation section ---
: (c) 1997 Bob Buckland - Rotate.bat
created for Brian Lacey, Mar 20, 1997
Purpose: Print text files in Landscape on HP Printer
using HP PCL commands.
Syntax: Rotate [name of file to send to printer]
Steps in the batch file
~~~~~
1. Setup the printer for landscape print
( use four PCL commands on 1 line - they are)
a. Reset code.
b. Switch to Landscape
c. Set page length to 45 lines,
d. Use 12 cpi font.
2. Copy the file to the printer if you need
the binary switch /b add it to the syntax
after ROTATE FILENAME.TXT
3. Return the printer to portrait setup
( use four PCL commands on 1 line - they are)
a. Switch to Portrait
b. Set page length to 60 lines,
c. Reset to 'default' 10 cpi.
d. Send printer reset code.
4. Eject the page
----end of batch file documentation section-----------
:Start
: -= Step 1 - Setup the Printer for landscape print job =-
echo <esc>&E <esc>&l1O <esc>&k4S <esc>&l45P >> lpt1:
: -= Step 2 - Copy the file to the printer =-
Copy %1 %2 lpt1:
: -= Step 3 - Restore 'normal' Portrait setup =-
echo <esc>&l0O <esc>&k0S <esc>&l60P <esc>&E >> lpt1:
: -= Step 4 - Eject the page =-
echo [replace this with as ascii 012] >> lpt1:
:bye
---------------------end of batch file----------------------
On 1997-03-20 relian...@msn.com said:
<<< I often download large documents in .prn format. However when I
print these items it forces portrait format, even if I have the
printer default set as landscape. Is there a "/" switch that I can
add to my command line that will fix this. Currently I have a
print.bat line that says... copy %1 lpt1 /b
Thank you,
Brian Lacey
BKL...@msn.com
------=_NextPart_000_01BC353F.83C57960
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<html><head></head><BODY bgcolor=3D"#FFFFFF"><p><font size=3D4 =
color=3D"#000000" face=3D"EucrosiaUPC">I often download large
documents = in .prn format. However when I print these items
it forces = portrait format, even if I have the printer default set
as landscape. = Is there a "/" switch that I can
add to my command line = that will fix this. Currently I have
a print.bat line that says... = <b>copy %1
lpt1 /b </b><br>Thank = you,<br>Brian Lacey<br>BKLacey@msn.
com</p> </font></body></html>
------=_NextPart_000_01BC353F.83C57960-- >>>>
Bob Buckland ?:-)
Businessware, since 1979, Simi Valley, California
Net-Tamer V 1.08X - Doing the Web in DOS