home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
printer
/
envprint
/
envprint.doc
< prev
next >
Wrap
Text File
|
1995-02-27
|
17KB
|
478 lines
+---------------+
| EnvPrint 1.50 |
+---------------+
Written by Stefan Zeiger in 1991 & 1992
© 1991 by ! WIZARD WORKS !
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This program is SHAREWARE.
~~~~~~~~~~~~~~~~~~~~~~~~~~
It may only be distributed under the following conditions :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- No profit is made with it.
- All files remain together in their original form.
- If you include this program in program library disks, the per-disk-fee
may not be more than US$ 6 or DM 10.
- This condition is only for Germany, Austria, Switzerland :
DIESES PROGRAMM DARF NICHT VON MITGLIEDERN DER 'SCHWARZEN LISTE' KOPIERT
WERDEN.
IF YOU HAVE DECIDED TO USE THIS PROGRAM,
YOU MUST PAY THE SHAREWARE FEE OF
US$ 10 / DM 20 / 6 POUNDS STERLING.
THEN YOU ARE A REGISTERED USER AND GET
INFORMED ABOUT FUTURE RELEASES OF "EnvPrint".
SEND YOUR MONEY TO THE ADDRESS AT THE END
OF THIS FILE.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Important :
~~~~~~~~~~~
YOU NEED THE "REQ.LIBRARY" IN THE "LIBS:" DIRECTORY !!!
IF YOU WANT TO USE THE AREXX PORT, YOU NEED THE "REXXSYSLIB.LIBRARY" IN
THE "LIBS:" DIRECTORY AND YOU MUST HAVE STARTED "REXXMAST".
( IN AN OS2.04 SYSTEM, AREXX IS NORMALLY STARTED BY DEFAULT IN THE
STARTUP-SEQUENCE )
Getting started :
~~~~~~~~~~~~~~~~~
EnvPrint is a handy tool for printing envelopes for letters. It can be started
from either CLI or Workbench. So, let's go...
The address gadgets :
~~~~~~~~~~~~~~~~~~~~~
You can enter the source and destination addresses in the string gadgets of the
EnvPrint window. The first two lines of each address are for the Name. If you
only need one line, use the second gadget. You can also enter a comment in the
comment gadget at the bottom of the window.
The "action" gadgets :
~~~~~~~~~~~~~~~~~~~~~~
At the right side of the window are some gadgets to perform various actions :
"Load" and "Save" are used to load and save addresses or comments (S. = source,
D. = destination, C. = comment). "Clear all" clears all gadgets on the EnvPrint
window. "Swap" swaps the source and destination addresses. And last but not
least : "Print" : This function prints the addresses and the comment onto an
envelope. If you answer the requester with "FRONT", both source and destination
addresses will be printed on the front side of the envelope. "FRONT & BACK"
prints the destination address on the front side and the source address on the
back side of the envelope. The comments are always printed on the front side.
You can cancel the printing job by clicking on the "Cancel" gadget in a
requester. If you use "FRONT & BACK", you will be asked for both sides, so
that you can e.g. print just the source address on the back side by answering
the "FRONT" requester with "Cancel" and the "BACK" requester with "Ok".
The menus :
~~~~~~~~~~~
Project About... <Same as gadget>
Save prefs Save prefs to 's:EnvPrint.prefs'
Quit... <Same as gadget>
Disk Load source... <Same as gadget>
Load destination... <Same as gadget>
Load comment... <Same as gadget>
Save source... <Same as gadget>
Save destination... <Same as gadget>
Save comment... <Same as gadget>
Delete file... Delete a file
Edit Swap <Same as gadget>
Clear... <Same as gadget>
Print Both on front... Print everything onto the front side
Source on front... Print only source onto front side
Destination on back... Print destination onto back side
Front & Back <The last menu items ones combined>
Format Lines before source... Number of lines before source address
Source offset... Number of spaces at the left of source
Lines after source... -- " --
Comment offset... -- " --
Lines after comment... -- " --
Destination offset... -- " --
Lines before backside... -- " --
Backside offset... -- " --
Preset DIN C 6 Set prefs for german 'DIN C 6' format
US Standard I'm not sure if this works correct.
If you have envelopes, that you would
like to have as a preset in this menu,
send me your prefs file, an example of
the envelope (with addresses and a
comment printed on it), and the official
name of the envelope format.
Startup procedure :
~~~~~~~~~~~~~~~~~~~
When you start EnvPrint, it will first try to load its configuration file
(s:EnvPrint.prefs). If this file does not exist, or it has a wrong format,
because it's from an earlier version of EnvPrint, a requester will come up
telling you what went wrong. You should then select 'Save prefs...' from the
'Project' menu, and the next time you start EnvPrint, this configuration will
be loaded. After searching for the prefs file, EnvPrint tries to load the
default source address (s:EnvPrint.source). This is useful for users without
ARexx to load their home address automatically. If you have ARexx, I recommend
to use EnvPrint's ARexx startup file (REXX:startup.evp). This offers much more
flexibility, because you can not only load the source address, but also e.g.
set the "comment" to your preferred default (e.g. "By Air Mail"). Finally the
ARexx startup file is executed, and then EnvPrint enters the normal, inter-
active mode.
Printing format :
~~~~~~~~~~~~~~~~~
Normally the first line of an address is printed "condensed". If
this line is empty, the second line is printed condensed. If you add the
name of a country in the 5th gadget, this will be printed "underlined". The
telephone number (6th gadget) is certainly only used in the source address,
and then also only if you print the source address on the FRONT side of the
envelope. The country is also only printed onto the front side, because many
printers can't start printing right at the top of an envelope and the space
on the upper part of an envelope's back side is usually not very big.
The best way to learn how EnvPrint works, is to load two of the addresses
in the directory "EnvPrint/Addresses" and a comment from "EnvPrint/Comments",
and print this on an envelope (or just a sheet of paper).
Adjusting your printer :
~~~~~~~~~~~~~~~~~~~~~~~~
Additional information for users of the « STAR LC 24-10 » printer :
If you want to print onto envelopes, you should move the printer head two
steps farther away from the paper than with normal paper.
This is certainly also necessary with many other printer.
The ARexx port :
~~~~~~~~~~~~~~~~
The ARexx port of EnvPrint is called "EVP_Host". If you execute a
script with "rx" (e.g. "rx version.evp") you have to set the port
with the "address" command (i.e. "address 'EVP_Host'"). The script
"rexx:startup.evp" is automatically executed with "EVP_Host" as its
default port if EnvPrint finds ARexx installed while starting up. If
you start EnvPrint twice with ARexx, only the first call will open a
port. The second call tells you by a requester, that it wasn't able
to install a port and it continues in non-ARexx mode. If ARexx is not
installed, EnvPrint works also in non-ARexx mode, but it doesn't come
up with a requester, because it would be very annoying for users
without ARexx to answer a requester everytime they start EnvPrint.
To demonstrate the use of the ARexx commands of EnvPrint, I've
included some example scripts in the "REXX" drawer. If you want to
use them, you have to start EnvPrint and then enter the CLI and exe-
cute a command like "rx scriptfile.evp".
ARexx Commands :
~~~~~~~~~~~~~~~~
EnvPrint 1.50 knows 28 ARexx command. This is a list of all commands
in alphabetical order, followed by the function descriptions.
about .................................... Show the ABOUT requester
clear .................................... Clear the fields
evpreq ................................... Show a requester
loadc .................................... Load comment
loadd .................................... Load destination
loads .................................... Load source
printba .................................. Print back side
printboth ................................ Print both on fromt side
printfr .................................. Print front side
quit ..................................... Quit EnvPrint
savec .................................... Save comment
saved .................................... Save destination
saves .................................... Save source
setco .................................... Set comment
setd1 .................................... Set field 1 of destination
setd2 .................................... Set field 2 of destination
setd3 .................................... Set field 3 of destination
setd4 .................................... Set field 4 of destination
setd5 .................................... Set field 5 of destination
setd6 .................................... Set field 6 of destination
sets1 .................................... Set field 1 of source
sets2 .................................... Set field 2 of source
sets3 .................................... Set field 3 of source
sets4 .................................... Set field 4 of source
sets5 .................................... Set field 5 of source
sets6 .................................... Set field 6 of source
swap ..................................... Swap source and detination
version .................................. Get version string
IMPORTANT
If a command or function fails, it returns with an error
code of 10.
In the below descriptions all unnecessary keywords are
left out. E.g. if the "SYNOPSIS" is just the same as the
"NAME", the "SYNOPSIS" is left out.
;--------------------------------------------------------------------
NAME
about
DESCRIPTION
The command "about" opens EnvPrint's ABOUT requester and
waits for the user to answer it.
;--------------------------------------------------------------------
NAME
clear
DESCRIPTION
"clear" clears the 6 source gadgets, the 6 destination
gadgets and the comment gadget. In contrast to the "Clear" gadget in
the EnvPrint window, this command does *NOT* ask, if you really want
to clear everything.
;--------------------------------------------------------------------
NAME
evpreq
SYNOPSIS
evpreq <string>
DESCRIPTION
"evpreq" displays a requester with the <string> in it and
waits for the user to answer it.
EXAMPLE
evpreq "Press <R> to quit"
quit
;--------------------------------------------------------------------
NAME
loadc, loadd, loads
SYNOPSIS
load(c|d|s) <filename>
DESCRIPTION
"loadc" loads a comment from disk; "loadd" loads an add-
ress into the "destination" fields, "loads" loads an address into the
source fields.
RETURNS
If these commands fail, they set the return code to 10.
EXAMPLE
loads "addresses/Stefan Zeiger"
loadd "addresses/Carsten Raufuß"
loadc "comments/Air Mail"
SEE
savec, saved, saves
;--------------------------------------------------------------------
NAME
printba, printboth, printfr
SYNOPSIS
print(ba|both|fr) <(device|file)>
DESCRIPTION
These commands print the addresses and the comment that
are currently loaded. "printba" prints the back side, "printfr" the
front side of a double-sided envelope; "printboth" prints the front
side of a single-sided envelope. The envelope must already be in-
serted, because the print commands don't wait with a requester, but
instead start printing at once.
RETURNS
These commands set the return value to 10 if they can't
open the specified device/file.
EXAMPLE
¹) printboth "prt:"
²) printfr "ram:front"
printba "ram:back"
;--------------------------------------------------------------------
NAME
quit
DESCRIPTION
"quit" quits EnvPrint and shuts down the ARexx port with-
out asking the user by a requester.
RETURNS
When "quit" returns, the ARexx port "EVP_Host" does not
exist anymore, so sending a command to it will produce an error of
the ARexx interpreter.
;--------------------------------------------------------------------
NAME
savec, saved, saves
SYNOPSIS
save(c|d|s) <filename>
DESCRIPTION
The save commands save the source address ("s"), the des-
tination address ("d") and the comment ("c") to the specified file.
RETURNS
If these commands fail, they set the return code to 10.
EXAMPLE
savec "ram:my very own comment"
SEE
loadc, loadd, loads
;--------------------------------------------------------------------
NAME
setco
SYNOPSIS
setco <string>
DESCRIPTION
"setco" sets the comment to the specified string.
EXAMPLE
SEE
setd1, setd2, setd3, setd4, setd5, setd6
sets1, sets2, sets3, sets4, sets5, sets6
;--------------------------------------------------------------------
NAME
setd1, setd2, setd3, setd4, setd5, setd6
SYNOPSIS
setd(1|2|3|4|5|6) <string>
DESCRIPTION
"setd..." sets the specified field (1-6) of the destina-
tion address to the specified string.
EXAMPLE
setd1 "! Wizard Works !"
setd2 "Stefan Zeiger"
setd3 "Seligenstädter Weg 24"
setd4 "D-W-8756 Kahl"
setd5 "Western Germany"
setd6 "Voice: (49)-6188-2525"
SEE
sets1, sets2, sets3, sets4, sets5, sets6
setco
;--------------------------------------------------------------------
NAME
sets1, sets2, sets3, sets4, sets5, sets6
SYNOPSIS
sets(1|2|3|4|5|6) <string>
DESCRIPTION
"sets..." sets the specified field (1-6) of the source
address to the specified string.
SEE
setd1, setd2, setd3, setd4, setd5, setd6
setco
;--------------------------------------------------------------------
NAME
swap
DESCRIPTION
"swap" does exactly the same as clicking on the "Swap"
gadget in EnvPrint's window; it swaps the source and the destina-
tion gadget.
;--------------------------------------------------------------------
NAME
version
DESCRIPTION
The function "version" returns the version string of the
EnvPrint program. This is the same as using the Shell's "version"
command, i.e. "version EnvPrint full".
RETURNS
If you turn on the "results" option, this function will
return EnvPrint's version in the variable "result".
EXAMPLE
options results
version
say result
;--------------------------------------------------------------------
Technical information :
~~~~~~~~~~~~~~~~~~~~~~~
THIS PROGRAM WAS WRITTEN WITH SAS/C 5.10.
CU (See you :-) ,
Stefan.
-----------------------------------------------------------------------------
STANDARD MAIL : ! WIZARD WORKS !
Stefan Zeiger
Seligenstaedter Weg 24
D-W-8756 Kahl
West Germany
VOICE : ++49-(0)6188-2525
MAILBOX : ++49-(0)69-5975113
"The Hitchhiker" (H.T.H.) in Frankfurt
300-14400 bps, 8/N/1, 24h online
Username : "STEFAN"
EMAIL : AmNet : STEFAN;HTH
Fido : STEFAN%HTH.AMN 2:247/12.5
Zerberus : STEFAN%HTH@AMNET.ZER
-----------------------------------------------------------------------------