home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Big Blue Disk 37
/
bbd37.zip
/
PRINTDOC.TXT
< prev
next >
Wrap
Text File
|
1989-09-06
|
4KB
|
95 lines
|A╔══════════╗════════════════════════════════════════════════════════╔══════════╗
|A║ |6Helpware |A║═══════════════════════ ^1PrintDoc |A═══════════════════════║ |6Helpware |A║
|A╚══════════╝════════════════════════════════════════════════════════╚══════════╝
^Cby
^CDavid Leithauser
Computer users often find themselves with text files that need to be
printed. Unfortunately, all DOS provides us with is COPY TEXTFILE.TXT PRN or
TYPE TEXTFILE.TXT > PRN. As many of you already know, using this sort of
command provides you with no ability to format the output. ^1PrintDoc^0 is a
small program that allows you to provide a format for printing pure ASCII
text files.
^C^1RUNNING PRINTDOC^0
You run PRINTDOC by typing PRINTDOC and pressing the ENTER key at the
DOS "*>" prompt. You will be prompted for filename, title, lines per page,
top margin, and continuous or single sheet paper.
^1Filename^0
The computer will first ask you for the name of the file to print.
Input the full name, including extension if one exists (remember to separate
filename from extension with a period). If you press the ENTER key on an
empty filename field, you will exit the program.
^1Title^0
Next, the computer will ask you if you want to print a title on each page.
You may either press Y to print a title or ENTER to accept the default value
of "No". If the title is printed, it will include a page number along the
right margin and a blank line after the title.
^1Lines Per Page^0
A normal sheet of paper holds 66 lines per page. You may accept the
default value of 58 printed lines per page by simply pressing the ENTER key
at this point. However, depending on the inclusion of title and number of
lines for a top margin, you may want to adjust this value to be sure that a
page really fits on a page!
^1Top Margin^0
Again, you may accept the default value (2 lines) by pressing the ENTER
key or establish a new value. The number of lines available on a normal
sheet of paper for the top margin can be calculated by:
66 - (lines per page + 2).
If you do not include a title the calculation is:
66 - lines per page.
^1Continuous or Single Sheet Paper^0
The last question the computer will ask is whether you are using single
sheets of paper. If you are using single sheets of paper, press Y. The
computer will pause to allow you to insert a new sheet of paper after each
page is printed.
Once all the questions have been asked, the program will begin printing the
file. You should have your printer set at the top of a sheet of paper. After
the program has completed printing the file, you will again be prompted for
the name of a file to print. Remember, to exit the program, press the ENTER
key at the filename prompt.
Should you desire to print another file, input the next filename. During
a print session, any changes made to the set of default values you answered
previously will be used on subsequent print requests.
^C^1A SHORT CUT^0
You can save yourself the trouble of answering all the questions by typing
the name of the file you wish to print after you type PRINTDOC and before you
press ENTER. For example, if you want to print out a file called README.TXT,
you can type PRINTDOC README.TXT and then press ENTER. The program will print
out this file using the current default values.
Print Option Default Value
============ =============
Title Yes
Lines Per Page 58
Top Margin 2
Paper Continuous
If you enter the name of the file at the DOS prompt the program will return
you to DOS after the printing is finished.
To run this program outside ^1Big Blue Disk^0, type: ^1PRINTDOC^0.
DISK FILES THIS PROGRAM USES:
^FPRINTDOC.COM