Article View: comp.periphs.printers
Article #2632Re: How do I software-select the print tray on a HP 6p under WP 5.1?
From: witra
Date: Thu, 10 Sep 1998 00:00
Date: Thu, 10 Sep 1998 00:00
148 lines
5043 bytes
5043 bytes
Alan Vlach <advlach@teleport.com> wrote:
>Hello:
>
>I have a client who is fiercely loyal to WordPerfect 5.1, not unlike the
>way Unix programmers can be fiercely loyal to vi or emacs (though
>*never* both!). She just bought a HP 6p and wants to be able to
>software-select the printer tray on demand. How is this done?
>
>Seems like such a simple question, but I don't know that much about DOS
>or WordPerfect, and the user's manuaul has long since been misplaced . .
>.
>
>Please help, and please send a cc of your reply to advlach@telport.com.
>(My ISP has such a short attention span in the Usenet that your reply is
>liable to be swept away before I ever see it in the newsgroup!)
>
>Thanks much,
>--Alan Vlach
>advlach@teleport.com
You want to send the following codes to the printer.
<&l2H for tray 2
<&l4H for tray 1
Note that I've converted the escape the escape characters to the "less
than" sign. You've got to change it back.
The following is some more control codes. Send me email if you don't
understand.
The # sign is a place-holder for numberic parameters
<E Reset
PAGE CONTROL COMMANDS
<&l#H Paper Source
0=prints or eject current page
1=Tray 2
2=manual feed, paper
3=manual feed, envelope
4=Tray 1
<&l#A Paper size
1=Executive 101=Custom
2=Letter 80=Monarch
3=Legal 81=Commercial 10
26=A4 90=DL
100=Commercial B5 91=International C5
<&l#O Orientation
0=Potrait 2=Reverse Portrait
1=Landscape 3=Reverse Landscape
<&l#E Top Margin
#=number of lines
<&l#F Text Length (bottom margin)
#=number of lines from top margin
<&a#L Left Margin
#=column number
<&a#M Right Margin
#=column number from left margin
<&k#H Horizontal Motion Index
1/120-inch increments (compresses print horizontally)
Specifies the horizontal shift between columns. The actual
fonts
are not flattened. Therefore if you specify 2/120 inch per
column
the text will print on top of each other and become
illegible.
<&l#C Vertical Motion Index
1/48-inch increments (compresses print vertically)
Vertical distance between lines
eg <&l48C = 1 lines per inch
<&l8C = 48/8 = 6 lines per inch
<&l6C = 48/6 = 8 lines per inch
<&l#D Line Spacing
#=lines per inch (1,2,3,4,5,6,12,16,24,48)
<&a#P Print Direction
#=degrees of rotation (counterclockwise 90 deg increments
only)
CURSOR POSITIONING
<&a#R Vertical Position (Rows)
<&a#C Horizontal Position (Rows)
<*p#Y Vertical Position (Dots)
<*p#X Horizontal Position (Dots)
Example:
<*p0Y<*p0X+
<*p2000Y<*p0X+
gotoxy() function in PCL
<&a#V Vertical Position (Decipoints)
<&a#H Horizontal Position (Decipoints)
<= Half Line Feed
FONT SELECTION
<(s#H Primary Pitch
#=characters/inch
<&k#S Set Pitch Mode
0=10
4=12 (elite)
2=16.5 - 16.7 (compressed)
<(s#V Primary Height
#=points
<(s#S Primary Style
0=upright(solid) 24=expanded
1=italic 32=outline
4=condensed 64=inline
5=condensed italic 128=shadowed
8=compressed 160=outline shadowed
<(s#B Primary Stroke Wt.
-6=extra thin 1=semi bold
-5=thin 2=demi bold
-4=extra light 3=bold
-3=light 4=extra bold
-2=demi light 5=black
-1=semi light 6=extra black
0=medium (book or text) 7=ultra black
<(s#T Typeface
Print a PCL font list to find the PCL command for each
font
<(10U<(s1p24v1s0b16602T
Arial-24 point
Technical Details
Message-ID:
<35fe3589.10072640@news.tm.net.my>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35EF65DC.A33843EC@teleport.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 104d8a,ac8c2f27a7f6643c X-Google-Attributes: gid104d8a,public X-Google-Thread: 10b0e4,ac8c2f27a7f6643c X-Google-Attributes: gid10b0e4,public From: witra@softhome.net (witra) Subject: Re: How do I software-select the print tray on a HP 6p under WP 5.1? Date: 1998/09/10 Message-ID: <35fe3589.10072640@news.tm.net.my> X-Deja-AN: 389643830 X-NNTP-Posting-Host: 202.188.53.129 Content-Transfer-Encoding: 7bit References: <35EF65DC.A33843EC@teleport.com> Content-Type: text/plain; charset=us-ascii X-Trace: 10 Sep 1998 13:28:57 +0800, 202.188.53.129 Organization: TMnet Malaysia MIME-Version: 1.0 Newsgroups: comp.periphs.printers,corel.support.wordperfect7