home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
600-699
/
ff634.lha
/
NewPrint
/
Doc
next >
Wrap
Text File
|
1992-04-06
|
5KB
|
125 lines
1991-Jan-20
NewPrint V2.1
NewPrint by Kjell Cederfeldt (Fourth Dimension) (c) Copyright 1990.
All rights reserved.
NewPrint V2.1 is ShareWare. It may be freely distributed for non commercial
purposes. If You find this program useful, send $10 to:
Kjell Cederfeldt phone 031-30 63 34
Hammarkulletorget 39 30 63 10
S-424 37 GÖTEBORG
SWEDEN
UseNet: ...{uunet|pyramid|rutgers}!cbmvax!cbmehq!cbmswe!datac!kjell
NewPrint is a program that sends textfiles to the printer. NewPrint has the
ability to format the text to suit Your needs and Your printer. It's a piece
of cace to adjust the printout to whatever You want. It is most suitable
for plain ASCII files. NewPrint prints non-ASCII characters and it does not
remove printer control commands except for formfeed. You can override the
formfeed-filter with the -e option described later in this text.
NewPrint keeps track of how You want Your margins, how tall Your paper is
and how many characters that will fit Your paper. No text will be lost
during formatting, no text will be printed on the perforation or on the
platen. You can set these parameters to anything. Parameters that You dont
set will be read in from Your current preferences settings.
If text contains formfeed (Ctrl-L, Dec 12, hex $0C) NewPrint will ignore
them as long as You don't set the e parameter from CLI or FORMFEED=yes
in the WorkBench.
Command syntax for NewPrint:
NewPrint f<file> d[device] l[lenght] w[width] mt[margin top]
mb[margin bottom] ml[margin left]
-h -? help Prints a help-text as above
-f filename Name of file to print
-d device Name of device to print to ie PRT: PAR: SER: CON:
-l length Total length of paper in lines
-w width Total width of paper in characters
-ml margin left Number of blank spaces at beginning of each line
-mt margin top Number of blank lines at top of each page
-mb margin bottom Number of blank lines at end of each page
-pt pageinfo top Tells NewPrint which line in topmargin to print
pagenumber and filename on. 1 = first line in
topmargin
-pb pageinfo bottom Tells NewPrint which line in bottomargin to
print pagenumber and filename on. 1 = first
line in bottom margin
-ns no status info No status information is shown.
-e execute ff Use this option if You want formfeeds to be
sent to the printer
-ts tab set Number of spaces to be inserted for each tab.
(the - can be left out and options can be written in any order)
Example: Print the file "test" on a 70 row paper with a width of 80
characters. We want 5 blank lines at the beginning and end of each page.
NewPrint ftest dprt: l70 w80 mt5 mb5
The printing progress can be cancelled with Ctrl-C or the Break command.
Options not written on the command line will be taken from preferences.
Options mt and mb does not exist in preferences and are set to 3 as default.
Not executing formfeed is also default. All options are printed in status
information, so You can always see what NewPrint is doing.
Note the difference in option ml and the left margin preference setting.
The preference setting refers to the first column to print the first
character on each line, but the NewPrint ml option refers to how many
spaces should be printed on each line. If You don't use the ml otion,
NewPrint will adjust itself so that left margin set to 1 in preferences
will be the same as ml 0.
You can run NewPrint from WorkBench. The options can be set as Tooltypes.
The Tooltypes are:
LENGTH=xx xx = Total paper length in lines.
WIDTH=xx xx = Total width in characters. (use to set right
margin)
TOP=xx xx = Number of blank lines at beginning of page
BOTTOM=xx xx = Number of blank lines at end of page
LEFT=xx xx = Number of spaces at beginning of line (use to
set left margin)
DEVICE=xx xx = Device to send text to (ie PRT: SER: PAR:)
TOPINFO=xx xx = Position for filename and pagenumber
BOTTOMINFO=xx xx = Position for filename and pagenumber
STATUS=no No status information on screen
FORMFEED=yes Formfeeds are sent to printer
SETTAB=x Inserts x spaces for each tab
Tooltypes not found are read from preferences. You can print a file by
clicking once with left mouse button on the NewPrint icon, press and hold
shift while double clicking on a textfile icon. NewPrint can also be set
as default tool for a project icon. Status information will be shown
in a window on the screen unless STATUS=no is set as Tooltype.
Thanks to the following for hints, testing and suggestions:
Nicklas Pernblad
Patrik Holmsten Datacentralen/The Fourth Dimension
Lorenz Einarsson The Fourth Dimension
Mats Nyman Delikatess Data
Jerry Sandstedt Delikatess Data
/ Kjell Cederfeldt 1990-10-06