home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
PRINTING
/
PAGR10.ZIP
/
PAGER10.DOC
< prev
Wrap
Text File
|
1991-12-04
|
4KB
|
102 lines
Program: Pager
Version: 1.0
Date: December 4, 1991
Author: George Spafford
Purpose:
To paginate DOS text files that lack appropriate form feed characters
(ASCII 12). The reformatted text should be able to be ported either to
a file or the printer.
Procedure:
PAGER may be invoked with all arguments on the command line or they may be
entered interactively in the program. Let's cover the command line first:
PAGER /S:source.fil /T:target.fil /P:nnnn
/S:source.fil This is the text file that needs to be paginated.
/T:target.fil This is where the paginated info will go.
This can be a device name. I have used PRN regularly
to send information to the printer. This is handy for
a "quick copy" to a 60 line laser printer.
/P:nnnn "nnnn" is the number of lines per page. This number
can not exceed 32,767 lines. (I kind of doubted that
this many would every be necessary so I just used an
integer to hold the value.)
/D This toggles double spacing on. It can only be
activated on the command line. So, even if you
intend on entering the file names and number of lines
per page manually, you must still invoke the program
with the /D switch (pager /d).
Note: All command line options are used only during program execution, they
are not stored. If you are going to repeatedly use a setting, then
perhaps you should set up a batch file. For a 60 line Laser Printer,
you could pass the file name that you want to print with an environment
variable. Assuming that PAGER is in the PATH, let's look at LJ.BAT:
PAGER /S:%1 /T:PRN /P:60
One line that's all you need! Just invoke it as:
LJ myfile.txt
If you do not use the command line, the program will prompt you for the above
listed information, the source file, output file and the number of lines per
page. It will not prompt you for double spacing. You must specify it on the
command line using the /D switch before the program is run.
While the program is running, the input file, output file and percent completed
will be listed. When all of the source file has been read and exported, a tally
of the total number of lines will be displayed.
When the program is placing the form feeds, it will not place one on the first
page so you must manually position the paper according to the number of lines
that you want on each page. Also, the program WILL place a form feed at the
end of the export file (or advance a page on the printer) to take the paper up
to the beginning of the next form.
For files that already have form feeds that you wish to get rid of, look for
DEPAGER on a BBS (my board, EXEC-PC, etc.) it will remove all incidences of
the ASCII 12 Form Feed character at a very respectable speed (Thanks to
Borland C++).
Register:
I hope this program helps you evaluate some of your problems
or even makes some solutions/benefits clear. This program is
released as shareware. Its price is $5 for each concurrently
used copy. If you have any suggestions or comments, I'd REALLY
like to hear those too.
Sincerely,
George Spafford
3001 LakeShore Drive, #329
St. Joseph, MI 49085
Data: (616) 468-5026 Queued Access BBS 14.4Kb USR Dual HST
FIDOnet: 1:2340/0 NEC/NC Sysop: Tim Akright
Legal stuff:
PAGER IS DISTRIBUTED AS IS. THE AUTHOR (GEORGE SPAFFORD) MAKES NO
WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
TO WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE,
WITH RESPECT TO THIS SOFTWARE AND DOCUMENTATION. IN NO EVENT SHALL
THE AUTHOR BE LIABLE FOR ANY DAMAGES, INCLUDING LOST PROFITS, LOST
SAVINGS, OR ANY OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OF OR THE INABILITY TO USE THIS PROGRAM.
----------------------------------------------------------------------------