home *** CD-ROM | disk | FTP | other *** search
- July 6, 1989
-
- 2UP (Version 2.13)
-
- (C) Copyright 1989 by TaxWare, PO Box 2014, Provo, UT 84601
- All rights reserved
-
-
- 2UP is a program used to print text files in landscape orientation on
- HP LaserJet (and compatible) printers. Other than your computer and printer,
- nothing else is needed to use 2UP. The program's flexibility is evident in the
- options listed below.
-
- The syntax of 2UP is:
-
- 2UP [option option ...] fileSpec1 [fileSpec2 ... ]
-
- In its simplest form, 2UP is used like this:
-
- 2UP fileSpec
-
- where fileSpec is the name of the ASCII text file you want to print.
-
- In other words, if you needed to print out this file (README.DOC) using 2UP,
- you would type in the following command:
-
- 2UP README.DOC
-
- This would print the file README.DOC using all of the default settings. That
- is, the file would be printed in 2-column format to printer LPT1, the first
- parallel printer, 66 lines of text per column, margins every 4th column,
- wrapping long lines of text, but not indenting wrapped lines, and printing on
- only one side of each sheet of paper.
-
- Listed below are the options that will allow you to override the default
- settings.
-
- Options:
-
- /C Number of Columns. 2UP allows you to print from one to five columns
- on each side of paper. If you do not use this option, the file will
- be printed in 2 columns. The following command will print the file
- PHONE.LST in 4-column format.
-
- 2UP /C4 PHONE.LST
-
- /D Duplex Printing. This option only applies to HP Series IID and compat-
- ible printers. If you do not use this option, printing will be done
- on one side of the paper only (simplex printing). If you do use this
- option on a printer that does not support duplex printing, the option
- is ignored. The following command will print the file MANUAL.DOC using
- both sides of each sheet of paper and with horizontal binding.
-
- 2UP /D1 MANUAL.DOC
-
- /F Redirect Output. This option allows you to redirect your output to a
- DOS file, usually to be printed later using the DOS PRINT or COPY
- command. Any valid file path without wildcards (*,?) may be specified.
- Errors will occur if you do not have proper rights to create and write
- the file, or if the disk to contain the file becomes full. Also,
- to provide safety measures, if you specify a file that already exists,
- you will be prompted whether you wish overwrite the file. This option
- will not work with the /P option. An error will occur. The following
- command will redirect the output from the file README.DOC to another
- file README.PRT on the disk in the A: drive.
-
- 2UP /FA:README.PRT README.DOC
-
- Later, the file can be printed to your laser printer in one of the
- following ways:
-
- PRINT A:README.PRT
- COPY /B A:README.PRT LPT1
-
- /I Wrapped Line Indentation. This option allows you to specify the number
- of spaces to indent wrapped lines, if any. The following command will
- print the file STORY.BOK, indenting wrapped lines 10 spaces.
-
- 2UP /I10 STORY.BOK
-
- /L Lines Per Column. This option allows you to specify the maximum number
- of lines that will be printed in each column. This option is useful
- when printing text files contiaining a fixed number of lines of text
- per record. This way, information that should stay together will not
- spill into the next column. For example, to print the file PHONE.LST,
- which has 8 lines of information per record, and to keep all info for
- each record together, you would use the /L option with a multiple of 8
- that is less than 66 (64, 56, 48...).
-
- 2UP /L64 PHONE.LST
-
- /M Set Margins. This option allows you to set the margins to every nth
- column. This option allows you to format program source files (such as
- C programs) that use marginal tabs, just as you see when in your text
- editor. The /M option cannot be used in conjunction with the /T option,
- which is used to expand tabs a specified number of spaces. The
- following command will print the file CHESS.PAS, with margins set to
- every 4th column (5, 9, 13,...).
-
- 2UP /M4 CHESS.PAS
-
- /N Disable Text Wrapping. This option allows you to "chop off" the text
- from the lines that would otherwise wrap-around to the next line. If
- this option is used in conjunction with the /I option, the /I option
- is ignored. This option can be useful when the /L option is used to
- keep records grouped together, and if there is a possibility that lines
- might be longer than the width of the column. The following command
- will disable long lines of text in the file ADDRESS.LST from wrapping
- to the next line.
-
- 2UP /N ADDRESS.LST
-
- /O Overwrite Output File. Normally, if the file specified by the /F option
- exists, you are be prompted to verify overwriting the file. This option
- causes the file, if it already exists, to be overwritten automatically.
- If the /F option is not used, this option is ignored. The following
- command causes the redirected output file DAILY.PRT to be automatically
- overwritten, if it already exists.
-
- 2UP /FDAILY.PRT /O DAILY.LOG
-
- /P Parallel Printer Port. This option allows you to print to a parallel
- printer other than LPT1. The printers supported are LPT1, LPT2 and
- LPT3. If your printer has a serial (COM) interface, use the DOS MODE
- command to allow you to use the printer as a parallel printer. The
- following command will print the file READ.ME to printer LPT2.
-
- 2UP /P2 READ.ME
-
- /T Spaces Per Tab. This option allows you to specify the number of spaces
- to expand each tab in the file. The maximum number of spaces per tab
- is 10. The following command will print the file MYMANUAL.DOC,
- converting any tabs to 8 spaces.
-
- 2UP /T8 MYMANUAL.DOC
-
-
- File Specifications:
-
- After any options, you may list as many files as you want on the
- command line. Wildcards (*,?) are supported. For example,
-
- 2UP C:\TODAY.LOG d:basprogs\*.bas d:c_progs\*.c 05??89.LOG
-
- will print
- o a file called TODAY.LOG located at the root of the C: drive,
- o all files ending with the .BAS extension in the BASPROGS
- subdirectory of the D: drive,
- o all files ending with the .C extension in the C_PROGS
- subdirectory of the D: drive, and
- o any files that match the pattern 05??89.LOG in the current
- directory, where ?? can be any two legal filename characters.
-
- Combining Options:
-
- Except where noted, options may be combined. The option letters do not need to
- be upper case. For example, the following command will print the files
- MANUAL1.DOC and MANUAL2.DOC in 3-column format, 60 lines of text per column, on
- the 2nd parallel printer, and indenting wrapped lines 8 spaces.
-
- 2UP /p2 /c3 /l60 /i8 manual1.doc manual2.doc
-
- Also, note that the options can be listed in any order, but must all be listed
- before the first fileSpec.
-
-
- If you need help using 2UP, simply type 2UP without anything else and the
- following screen will appear:
-
- 2UP Version 2.13 (reg'd to ???????????????)
- (C) Copyright TaxWare 1989. All Rights Reserved.
- 2UP - For Printing Text Files In Landscape Orientation On HP LaserJet Printers
-
- Usage: 2UP [option option ...] fileSpec1 [fileSpec2 ... ]
- The following options are available:
- /Cn set columns of text per page to n (1 - 5); default is 2.
- /Dn use duplex printing (applicable printers only);
- n = binding mode: 0 for vertical, and 1 for horizontal.
- /Ffilename send output to filename; cannot be used if /P is used.
- /In indent wrapped lines n spaces; default is 0; ignored if /N is used.
- /Ln set lines of text per page to n (40 - 66); default is 66.
- /N cut off lines that would otherwise continue (wrap) to the next line.
- /O overwrite /Ffilename, if it exists; ignored if /F is NOT used.
- /Pn set LPT printer port number to n (1 - 3); default is 1.
- /Tn expand tabs to n spaces (1 - 10); not valid with /M option.
- /Mn set margins to every nth column (1 - 10); default is 4.
-
- If you find 2UP to be a useful utility, a registration fee of $20 is requested.
- Once registered, you will receive the most recent version of the software and
- continued upgrade information. Also, as a bonus, you will receive a version of
- 2UP featuring a forms-based interface and recallable options. Please include
- the version of 2UP that you are using and to whom it is registered.
- Send to: TaxWare, PO Box 2014, Provo, UT 84601
-
- Reports of perceived bugs or suggestions for improvements are also appreciated.
-
- Copyright Notice and Disclaimer
-
- 2UP is a copyrighted program. However, no fee is charged for the
- non-commercial use of this program by individuals.
-
- 2UP may be copied and distributed to others provided that all of
- these conditions are met:
-
- (1) The files containing the program (2UP.EXE) and this document
- (README.DOC) are distributed together, as a single package.
-
- (2) No alterations are made to the contents of either file.
-
- (3) No fee, payment, service charge, or voluntary donation is requested
- or accepted.
-
- The operation of 2UP is not warranted in any way, nor will TaxWare be
- responsible for damages or losses that may result from its use.
-
- TaxWare
- PO Box 2014
- Provo, UT 84601
-
- Revision History
-
- Version 2.11 (May 02, 1989) was the first version released as shareware.
-
- Version 2.12 (June 06, 1989)
- fixed a bug that would cause the printer/computer to hang when
- printing files in 4 or 5 column format, where a fourth or fifth
- column had relatively few lines of text. Sometimes this bug would
- cause strange things to be printed on the information line (file
- name, date, time & page #).
-
- Version 2.13 (July 06, 1989)
- added marginal tabs and clarified "spaces per tab" to be tab expansion.
- fixed a bug that would cause pages to contain fewer lines than expected
- because of lines being cut-off (/N option) still be counted as printed
- lines.
-