21UPRT.ZIP
Version 7.5 - 03/06/99

Title: V7.5 - Print 2UP or 1UP on Lasers
Keywords: 2UP 1UP LASER LANDSCAPE PORTRAIT PRINT ANSI PPDS PCL PS

Program to print 2UP or 1UP on laser printers using PPDS, PCL or PostScript commands. Can number lines, support ANSI control characters, suppress multiple blank lines and page ejects. Supports A4 and legal paper sizes. Highly configurable with MANY other functions.


21UPRT.ZIP Contents:

WARNING!.21U
PROCONVT.CMD
21UPREAD.1ST
21UP.EXE
21UPTEST.FIL
21UPDOC.HTM
21UP.GIF (Used by 21UPDOC.HTM)
FILE_ID.DIZ


21UP Install:

  1. READ and perform instructions in WARNING!.21U if it applies to you.
  2. Copy 21UP.EXE to a directory which is included in the PATH statement.
  3. Start 21UP. You may start it from a command line or you may create a 21UP object on your desktop or in a folder using standard OS/2 procedures and start it from there.
  4. Print the Documentation (Select One):
  5. The documentation will print. Read and follow instructions there. NOTE the INITIAL SET UP section, especially if the documentation did not print correctly (If you printed under 21UP).
  6. If you still have problems then DO THE FOLLOWING:


21UP File Usage:

The following files may be used and/or created by 21UP:

21UP.PRO - The name of the default profile (if saved)
21UP.OUT - The name of the default output file if you print to a file
21UP.FIL - The name of the file containing the last directory (and optionally the last filename) that was selected
21UPFILE.LIS - The name of the file containing the list of files (created by File - Create List). May have multiple copies in multiple directories.

NOTE: If you change the program name then the 21UP.PRO, 21UP.OUT and the 21UP.FIL files will automatically be written as your program name with the .PRO, .OUT and .FIL extensions. The file(s) named 21UPFILE.LIS will NOT change.


21UP.EXE:


21UP Main Menu:

NOTE: The title bar contains information about the processing status of 21UP and the printing progress is noted in the progress bar and text shown just at the top of the Main Menu.


21UP Printer Settings Menu:


INITIAL SET UP:

  1. When initially setting up 21UP I recommend that you print a file of at least 200 records using the full frame and header option (Frame & Header). I recommend printing 21UPTEST.FIL. The Page Definition MUST be set to: From Program. Examine the output carefully. If a new frame starts on the bottom of the page then the Adjust should be increased by the amount of extra lines that were printed. If a new frame starts after lines that were spilled over from the first page then the Adjust should be decremented by the number of lines that spilled over onto a new page. Include Frame and Header lines in the count.

    NOTE: The Adjust value is the number of physical lines printed (NOT the number of lines in each column in 2UP format.)

  2. The same type of adjustment may be made to the number of characters printed on each line. Print some long (over 120 character) lines and see if they break correctly for you.

    NOTE: The Adjust value is the number of characters printed in each column.

  3. DeskJet Users: Select PCL4 in the Mode option and set Adjust Lines per Page to -2 as the initial value.


21UP.FIL Format:

NOTE: There is only 1 record in this file.

Position 1 - The directory (drive, and path) of the last selected file (Also includes the filename if this option was selected).


21UP.PRO Format:

NOTE: There is only 1 record in this file.

Position 1 - Print Layout:
1 = 1UP (Portrait)
2 = 2UP (Landscape)*
3 = 1UP (Landscape)
4 = 2UP (Portrait)
Position 2 - Print Mode:
1 = PPDS *
2 = PCL (HPLJ)
3 = PostScript
4 = Any 132 Column Printer (non-laser)
5 = Any 80 Column Printer (non-laser)
Position 3 - Print Size:
0 = Small *
1 = Bigger
Position 4 - Line Number:
0 = No *
1 = Yes
2 = Reset between Pages
Position 5 - Paper Size:
0 = 8.5x11 *
1 = A4
2 = 8.5x14 (Legal)
Position 6 - Header Format:
1 = Filespec *
2 = Page Numbers *
4 = Date *
(Add numbers for combinations)
Position 7 - Print Option:
= Frame and Header *
F = No Frame
R = No Header
H = No Frame or Header
A = uses ANSI print controls as the first character on each line. Consecutive blank lines are NOT suppressed. Records longer than the line length are truncated. The bar frame and the header lines are NOT printed. This option is NOT VALID 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 Definition:
1 = LPT1 *
2 = LPT2
3 = LPT3
4 = FILE (21UP.OUT in same directory as 21UP.EXE)
5 = User defined
Positions 9-11 - Adjust Lines per Page:
00 = None *
(The number will be in positions 10 and 11. A negative number will have a - in position 9, a positive number will have a blank in position 9.)
Positions 12-13 - Adjust Characters per Line:
0 = None *
(The number will be in position 12. A negative number will have a - in position 11, a positive number will have a blank in position 11.)
Position 14 - Adjust for Hole Punching:
0 = No *
1 = 2UP & 1UP
2 = 5.5x8.5 (cut)
Position 15 - IBM-Denmark Symbol Set:
0 = No * (IBM-US is the default)
1 = Yes
Position 16 - Print Format:
0 = Multiple lines per record
1 = 1 line per record (Truncated)
2 = 1 line per record (Truncated and Centered)
3 = Multiple lines per record with wordwrapping *
Position 17 - Page Definition:
0 = Program *
1 = User
Position 18 - Date fmt: dd/mm/yy
0 = No *
1 = Yes
Position 19 - PostScript Font size:
5-9 = default is 6 *
Position 20 - Hole Punch adjust lines/page:
2-6 = default is 3 *
Position 21 - Hole Punch adjust char./line:
4-9 = default is 5 *
Position 22 - Honor Blank lines & Page ejects:
0 = No *
1 = Yes
Position 23 - Duplex:
0 = No *
1 = Manual/AutoPS
Position 24 - Include Time in Header Format
0 = No *
1 = Yes
Position 25 - Frame Type:
0 = Double Line *
1 = Single Line
Position 26 - Use file date and/or time:
0 = No *
1 = Yes
Position 27 - Tray#:
1 = Tray 1 *
2 = Tray 2
Position 28 - Save filename:
0 = No *
1 = Yes
Position 29 - Append Files:
0 = No *
1 = Yes
Position 30 - Save profile prompt
0 = No *
1 = Yes
Position 31-32 - Tab Position
1-20 = default is 1 *
Position 33 - Reserved
Position 34-80 User defined printer name

* = Built-in default if there is no profile:
--->210007 1 00 000300635000001000 1

You may create/update this file or other profiles with any text editor in lieu of using 21UP.EXE although this should not be necessary.


Specification Table:

The following table shows how the Characters per Line and the Lines per Page change depending on the type of printing and options chosen. Your adjustments will be based on these numbers as the starting point.

Normal Lines*

Long Lines

Short Lines

Layout

2UP (Landscape)*

1UP (Portrait)

1UP (Landscape)

2UP (Portrait)

Mode

PPDS*

PCL4

PS

PPDS

PCL4

PS

PPDS

PCL4

PS

PPDS

PCL4

PS

Smaller Prnt-CpL
-LpP

87*
184*

84
180

110@
186@

132
121

129
120

133@
123@

178
92

172
90

224@
93@

64
242

62
240

64@
246@

A4 Paper -CpL
-LpP

92
180

89
174

117@
174@

128
125

125
127

129@
131@

188
90

182
87

238@
87@

62
250

60
254

62@
262@

Legal Paper-CpL
-LpP

114
84

110
180

144@
186@

132
157

129
156

133@
159@

232
92

224
90

292@
93@

64
314

60
312

64@
318@

Larger Print-CpL
-LpP

59
120

84
116

@
@

91
80

129
78

@
@

122
60

172
58

@
@

43
160

62
156

@
@

A4 Paper -CpL
-LpP

64
116

89
114

@
@

88
84

125
84

@
@

132
58

182
57

@
@

42
168

60
168

@
@

Legal Paper-CpL
-LpP

77
120

110
116

@
@

91
104

129
101

@
@

158
60

224
58

@
@

43
208

62
202

@
@

Line Number-CpL

-4

-4

-4

-4

-4

-4

-4

-4

-4

-4

-4

-4

Hole Punch-CpL
-LpP

N/C
-3

N/C
-3

N/C
N/C

-5
N/C

-5
N/C

-5
N/C

-5
N/C

-5
N/C

-5
N/C

N/C
-3

N/C
-3

N/C
N/C

No Frame -CpL
-LpP

+2
+2

+2
+2

+2
N/C

+4
+1

+4
+1

+4
N/C

+4
+1

+4
+1

+4
N/C

+2
+2

+2
+2

+2
N/C

No Header -CpL
-LpP

N/C
+2

N/C
+2

N/C
N/C

N/C
+1

N/C
+1

N/C
N/C

N/C
+1

N/C
+1

N/C
N/C

N/C
+2

N/C
+2

N/C
N/C

No Frm/Hdr -CpL
-LpP

+2
+6

+2
+6

+2
N/C

+4
+3

+4
+3

+4
N/C

+4
+3

+4
+3

+4
N/C

+2
+6

+2
+6

+2
N/C

ANSI Supprt-CpL
-LpP

+2
+6

+2
+6

N/S
N/S

+4
+3

+4
+3

N/S
N/S

+4
+1

+4
+1

N/S
N/S

+2
+2

+2
+2

N/S
N/S

*=Default without profile
@=Default / Depends on font size selected 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, on as small amount of paper as possible. To meet this objective I have elected to translate page ejects, tabs, and nulls to blanks and suppress multiple blank records. By using this logic I can typically print 100 pages of formatted output on 30-38 pages of paper (instead of 50 with regular 2UP) and it is still very readable.


21UP Analysis:

I have performed an analysis of over 22 programs that provide at least some of the functionality found in 21UP (includes DOS, WINDOWS and OS/2 programs). There are very few programs that approach the functionality found in 21UP but there are 4 features found in a couple of other programs that are not in 21UP. These are:

I do not plan to support the last 3 features because they do not necessarly mean that there is more information printed on a page and that is a prime requirement for 21UP. I am still open to suggestions to add better functionality to 21UPRT.


Program Information:

The latest update to this package is posted to the following Forum on CompuServe:

OS2USER Forum - Library 4 - Applications

The package also gets posted to various other locations around the world but I am NOT responsible for posting it or ensuring that they have the latest version. If you get this package from other locations then I would appreciate knowing what VERSION you got, the DATE you got it and the NAME and LOCATION that you got it from. If you post this package to other locations then I would appreciate knowing where you posted it.

NOTE: Many other locations post this program as 21UPRTxx.ZIP where xx is the version of the program.

LOCATIONS KNOWN TO CARRY THE CURRENT VERSION OF 21UPRT.ZIP

http://www.os2bbs.com (21UPRTxx.ZIP)
http://hobbes.nmsu.edu/ (21UPRTxx.ZIP)
ftp://ftp.cdrom.com/pub/hobbes (21UPRTxx.ZIP)
America Online - OS/2 Forum

To search for additional sources on the WWW I suggest you go to one of the search sites and use: 21UPRT*.ZIP as the search argument. Look carefully to find the most recent version as many sites have old versions.

This package is FREE for anyone to use or distribute in its entirety and I am not responsible for any problems that this program may cause.

I DO ASK that if you find this package useful then please send me a note. This is only so that I may get an idea if anyone is using the program and if further enhancements would be worth my time. I will also notify you when new releases of 21UP are available.

Many of the changes and enhancements to this program were a direct result of user suggestions and testing and I wish to thank all of these people. If you have any suggestions, problems or just have comments about the package then please let me know.

Roger Lapp
Arlington, TX

CompuServe - 70573,2577
Internet - 70573.2577@compuserve.com


Latest 21UP Changes:

V7.5

  1. Fixed a problem handling files that were created with only a LF instead of CRLF at the end of each line.
  2. Minor fixes to 2UP processing with PostScript.
  3. Made duplex support under PostScript insert commands to print duplex on printers that have the hardware feature.
  4. Added the ability to print the clipboard from the command line and from a new FILE - Print Clipboard Menu setting. When selecting from the menu the effect is immediate, the clipboard is sent to printer and control is returned to where you were.
  5. Added logic to not close the printer output until all copies of a file are printed. Reduces 'File Printed' notices on network attached printers.
  6. Added 21UPDOC.HTM to view documentation in a browser.
  7. Added support to keep the latest list of file(s) that were printed so that the Print button may be selected again to re-print. Selecting a new file or File-Reset will reset the list. The list is not kept across invocations of 21UP.

V7.4

  1. Fixed a bug with duplex.
  2. Fixed a bug printing files with embedded tabs.
  3. Revised the tab support to do what it should do (tab to the next tab position). Expanded the tab position box to allow up to 20 for the tab position spacing. A tab position of 1 (the default) just substitutes a blank for the tab.
  4. Added a new option under Header format (Date fmt: dd/mm/yy) to use this format in the header instead of the default mm/dd/yy.

V7.3

  1. Fixed a problem with specifying a list file (-L) or a profilespec (-P) from the command line.
  2. Fixed a problem with canceling the FILE-SELECT dialog and then trying to print files that were selected prior to the dialog.
  3. Much more flexible command line invocation: Added capability to search the PATH and DPATH entries for the specified file if only the name of the file is entered instead of the full filespec.
  4. Rearranged the documentation a little to make it easier to see the names of the parts of the Menus.
  5. Re-selecting a secondary menu from the Main Menu will now activate the secondary window and bring it to the front.
  6. Made the background for entering a printer name more visible.
  7. Added a selection on the Printer Menu to prompt to save profile (if changes are made) when exiting 21UP.

V7.2

  1. Fixed a problem with lines per page on A4 paper.
  2. Fixed an incompatability problem with 4OS2.
  3. Fixed a problem with hole punch adjust and 2UP portrait and 1UP landscape.
  4. Fixed a problem with filenames with imbedded spaces. You could not print these from the command line or by drag and drop. You can now. You may not have more than 1 consecutive blank in the name.
  5. Added a total page count to the top of the main menu along with file count.
  6. The font in the check boxes and buttons has been made smaller to improve the readability of 21UP at high resolutions.

V7.1

  1. Added support for 1UP printing in Landscape mode. Good for extra long print lines.
  2. Added support for 2UP printing in Portrait mode. Good for real short print lines.
  3. Added support for saving the current path and optionally the file name when leaving 21UP. This allows you to get back to where you last left 21UP and is almost always better than the default path.
  4. Added a new menu option under Files called Select List. This allows you to select a file which contains a list of files to process.
  5. Added a new menu option under Files called Create List. This allows you to create a file (21UPFILE.LIS) which contains a list of files in the directory selected. This file is also stored in that directory. You may then select this file with Select List.
  6. Added the Append Files option to Print Format. This will NOT eject to a new page when printing a new file, instead it inserts the filename at the start of a new file. This option has the potential to save a lot of paper when printing many short files.
  7. Added a progress bar just below the menu to track the processing progress by file.
  8. Significant performance improvements have been made to file processing. Most noticable with larger files.
  9. Changed the following for duplex printing:
  10. The Help/Documentation has not only been changed to reflect the above additions but has been extensively revised to clarify meanings. In addition, some limited examples of command line invokation have been added.