home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
PRINTING
/
21UPRT.ZIP
/
21UP.DOC
next >
Wrap
Text File
|
1993-06-25
|
10KB
|
200 lines
21UPRT.ZIP
Version 3.2 - 06/25/93
Title : V3.2 - PM Print 2UP or 1UP on Lasers-PPDS,HPLJ,PS
Keywords: 2UP 1UP REXX LASER LANDSCAPE PORTRAIT PRINT ANSI PPDS HPLJ PS PM
REXX PM program to print 2UP in landscape mode or 1UP in portrait mode
on laser printers using PPDS, HPLJ or PostScript commands. Will number
lines or support ANSI control characters. Suppresses multiple blank lines
and page ejects. Supports A4 (European) paper size.
21UPRT.ZIP Contents:
21UP.EXE
21UP.ICO
21UP.DOC
21UPRT.CHG (Summary of changes to 21UPRT)
21UP Install:
Copy 21UP.EXE, 21UP.ICO and 21UP.DOC to a directory which is included
in the PATH statement.
21UP.EXE:
This REXX Program contains all of the functions, plus some additions,
formerly found in 2UP.CMD and 1UP.CMD in the 2UPPRT.ZIP package. It
has been extensively rewritten using VisPro/REXX to provide a full PM
interface and faster execution.
- Lines longer than the line length are continued onto the next line
up to a maximum of 3 print lines.
- Consecutive blank lines are suppressed.
- Control characters imbedded in the file, such as new page and tabs,
are translated to blanks, so you should expand all tabs before
printing in order to get better looking output.
- Format: 21UP <filespec> <-Q>
If NO filespec is entered then a File Selection Menu will be
displayed before the 21UP Menu. NOTE: If Cancel is selected
from the File Selection Menu then 21UP will terminate.
If ONLY a filespec is entered then the 21UP Menu is displayed.
If a filespec is entered AND -Q (for Quick) is entered then
the file will be printed using the profile or built-in
defaults and then terminated.
21UP Menu:
- Allows selection of files. (Options - File Select)
- Allows you to save your option selections as defaults in profile file
21UP.PRO. This file is stored in the same directory as 21UP.EXE.
(Options - Save Profile)
- Exits 21UP. (Options - Exit)
- Displays help when requested. This file (21UP.DOC) serves as the
help file. (Options - Help)
- Allows you to Print the file and keep the menu open for other file
selections and/or options. (Print)
- Allows you to Print the file and then Exit. (Print & Exit)
- Allows selection of all options.
- Displays the filespec of the selected file along with its status
(Reading, Printing, if applicable) in the Title Bar.
- Displays error messages for incompatible selection combinations and
other errors.
- Displays the estimated print pages required to print the file and
the number of pages you save over regular printing. (Assuming only 1
line is printed for each line in the file and NO lines are supressed)
(Values are meaningless when ANSI is selected).
21UP.PRO Format (There is only 1 record in the file):
Position 1 - Format: 1 = 1UP
2 = 2UP *
Position 2 - Mode: 1 = PPDS *
2 = HPLJ
3 = PostScript
4 = DeskJet
Position 3 - PrSize: 0 = Small *
1 = Bigger
Position 4 - Number: 0 = No *
1 = Yes
2 = Reset between Pages
Position 5 - Paper: 0 = 8.5x11 *
1 = A4
Position 6 - Hdrfmt: 1 = Filespec *
2 = Page Numbers *
4 = Date *
(Add numbers for combinations)
Position 7 - Option: = none *
F = No Frame
H = No Frame or Header
A = uses ANSI print controls as the first
character on each line. Consecutive blank
lines are NOT suppressed. Lines longer than
the line length are truncated. The bar frame
and the header lines are NOT printed. This
option is NOT supported in PostScript mode.
ANSI Code Action before printing
--------- ----------------------
blank space 1 line
0 space 2 lines
- space 3 lines
1 skip to line 1 on a new page
+ suppress space (NOT implemented,
treated as blank)
Position 8 - Printer: 1 = LPT1 *
2 = LPT2
3 = LPT3
* = Built-in default if there is no profile (210007 1).
You may update/create this file with any text editor in lieu of using
21UP.EXE although this should not be necessary.
SPECIFICATION TABLE:
The following table shows the variable values that change depending on
the type of printing and options chosen:
╔═════════════════╗╔═════════════════╗
║ 2UP* ║║ 1UP ║
╠═════╤═════╤═════╣╠═════╤═════╤═════╣
Mode ║PPDS*│HPLJ │ PS ║║PPDS │HPLJ │ PS ║
╟─────┴─────┴─────╢╟─────┴─────┴─────╢
╟─────┬─────┬─────╢╟─────┬─────┬─────╢
CpL ║ 87 │ 84 │ 110 ║║ 132 │ 129 │ 133 ║
╟─────┼─────┼─────╢╟─────┼─────┼─────╢
LpP ║ 184 │ 118 │ 186 ║║ 121 │ 78 │ 123 ║
╟─────┴─────┴─────╢╟─────┴─────┴─────╢
╟─────┬─────┬─────╢╟─────┬─────┬─────╢
A4 Paper - CpL ║ 92 │ 89 │ 117 ║║ 128 │ 125 │ 129 ║
╟─────┼─────┼─────╢╟─────┼─────┼─────╢
LpP ║ 180 │ 114 │ 174 ║║ 125 │ 83 │ 131 ║
╟─────┴─────┴─────╢╟─────┴─────┴─────╢
║ ║║ ║
╟─────┬─────┬─────╢╟─────┬─────┬─────╢
Larger Print - CpL ║ 59 │ 49 │ 86 ║║ 91 │ 76 │ 104 ║
╟─────┼─────┼─────╢╟─────┼─────┼─────╢
LpP ║ 120 │ N/C │ 140 ║║ 80 │ N/C │ 92 ║
╟─────┴─────┴─────╢╟─────┴─────┴─────╢
╟─────┬─────┬─────╢╟─────┬─────┬─────╢
A4 Paper - CpL ║ 64 │ 47 │ 91 ║║ 88 │ 73 │ 101 ║
╟─────┼─────┼─────╢╟─────┼─────┼─────╢
LpP ║ 118 │ N/C │ 136 ║║ 84 │ N/C │ 98 ║
╟─────┴─────┴─────╢╟─────┴─────┴─────╢
║ ║║ ║
╟─────┬─────┬─────╢╟─────┬─────┬─────╢
DeskJet - LpP ║ N/S │ -4 │ N/S ║║ N/S │ -2 │ N/S ║
╟─────┴─────┴─────╢╟─────┴─────┴─────╢
║ ║║ ║
╟─────┬─────┬─────╢╟─────┬─────┬─────╢
Number Lines - CpL ║ -4 │ -4 │ -4 ║║ -4 │ -4 │ -4 ║
╟─────┴─────┴─────╢╟─────┴─────┴─────╢
╟─────┬─────┬─────╢╟─────┬─────┬─────╢
No Frame - CpL ║ +2 │ +2 │ +2 ║║ +4 │ +4 │ +4 ║
╟─────┼─────┼─────╢╟─────┼─────┼─────╢
LpP ║ +2 │ +2 │ N/C ║║ +1 │ +1 │ N/C ║
╟─────┴─────┴─────╢╟─────┴─────┴─────╢
╟─────┬─────┬─────╢╟─────┬─────┬─────╢
No Frame/Hdr - CpL ║ +2 │ +2 │ +2 ║║ +4 │ +4 │ +4 ║
╟─────┼─────┼─────╢╟─────┼─────┼─────╢
LpP ║ +6 │ +6 │ N/C ║║ +3 │ +3 │ N/C ║
╟─────┴─────┴─────╢╟─────┴─────┴─────╢
╟─────┬─────┬─────╢╟─────┬─────┬─────╢
ANSI Support - CpL ║ +2 │ +2 │ N/S ║║ +4 │ +4 │ N/S ║
╟─────┼─────┼─────╢╟─────┼─────┼─────╢
LpP ║ +6 │ +6 │ N/S ║║ +3 │ +3 │ N/S ║
╚═════╧═════╧═════╝╚═════╧═════╧═════╝
*=Default without profile N/C=No Change N/S=Not Supported
CpL=Characters per Line
LpP=Lines per Page
OBJECTIVE and LOGIC:
The objective of this program is to print as much information, in a
readable form, in as small amount of paper as possible. To meet this
objective I have elected to translate page ejects to blanks and
suppress multiple blank lines. By using this logic I can typically
print 100 pages of formatted output on 30-38 pages of paper (instead
of 50) and it is still very readable.
If you encounter any problems, have any suggestions for enhancements,
or just have comments about the package, please let me know.
Roger Lapp - 70573,2577 (CompuServe) - TMGC69A (Prodigy)