Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : TN9003.ZIP
Filename : ENVELOPE.TXT

 
Output of file : ENVELOPE.TXT contained in archive : TN9003.ZIP
Printing Envelopes with the
LaserJet II Series Printer
MIKE WESLEY AND ROGER BOWMAN
Businesses have varying correspondence needs, yet almost all
businesses will have occasion to print envelopes from their
laser printer. Whether you need to print a single envelope "on
the fly" or merge with your customer database for a mass
mailing, Framework III provides the tools necessary to make
envelope printing fast, easy, and reliable.

Here now is an article that will explain the meaning of life, the
mysteries of the universe and the solution to world peace. Just
kidding. But it does illustrate how to print addresses from a
database on standard commercial #10 legal envelopes which, in
itself, is an accomplishment worth noting. We will illustrate
through the creation of two files which can be called upon at
anytime to provide accurate envelope printing. The first file
will be a WYSIWYG (What You See Is What You Get) envelope
frame. This frame will be used for printing a single envelope

and will provide for a return address as well as a destination
address. The second file will be a containing frame with a
database frame of customer addresses and a word frame with the
merge fields placed for correct printing on preprinted business
envelopes.

The first example is the file of choice when you need to print a
small number of envelopes, or you do not have your business
address preprinted on the envelope. This frame will work with
any Hewlett-Packard LaserJet Series II printer, including the II,
the IID, and the new IIP (Personal) LaserJet printer.
Additionally, the necessary adjustments are outlined which will
allow the frame to print correctly on a Hewlett Packard DeskJet
Plus inkjet printer. If you have a compatible printer (i.e. not a
Hewlett Packard) which only emulates a LaserJet, the reliability
of the codes used herein may be questionable. You are advised
to consult your printer manual or your dealer for any known
variances. But, for the duration of this article, we'll be
optomistic and believe that everyone who claims HP compatability
is telling the truth.

Creation of a WYSIWYG Envelope Frame

To create our file, first create an empty word frame. Next,
press F4 Size and extend the frame to 19 lines in height by 90
characters wide, as indicated on the right side of the status
line (the frame will extend beyond the screen to the right Ä
simply continue pressing the ’ key until the size is the
appropriate 90 columns, pressing Enter to lock in the sizing).
With the border of the word frame highlighted, press the
spacebar to enter label editing mode and type a name for your
envelope frame (WYSIWYG is probably as good as any; remember, you
can make the label as long as you wish in order to fully
describe the frame; however, DOS will only use the first 8
characters for its filename, substituting an underscore character
for any embedded spaces). Now select Format Options from the
Print menu and enter the following values:

Offset from Left: 3*
Lines per Page: 19
Spacing: 1
Width of Line: 90
Top Margin: 0
Bottom Margin: 0

It is now necessary to enter some Hewlett-Packard escape sequence
codes which Framework III will send automatically prior to
printing each envelope. These are needed to ensure a landscape
(or sideways) printing mode is invoked on the printer and the
addresses are correctly positioned on the resulting printed
envelopes. A full description of the function of each of these
codes is available in the Appendix section of all HP User
manuals.

Select Control Options from the Print menu and press "S" for
Starting Control Codes. On the edit line at the bottom of the
screen, type in the following codes (including the brackets for
each reference to the escape character):

{ESC}E{ESC}&l1o81a3H

After pressing Enter, select Ending Control Codes and enter the
following codes:

{ESC}E

* If manual envelope feed is not necessary or desired,
omit the 3H at the end of the code and capitalize the
preceeding lower case "a".
* If you are printing to a DeskJet Plus printer, enter
the following starting control codes in lieu of those
previously listed:

{ESC}E{ESC}&l81A

Note that the lowercase l should not to be confused with the
number 1. Additionally, the lower case o should not be confused
with zero . Adherence to upper and lower case where noted is a
must if you wish to send codes that are correctly interpreted by
the printer.

You are now ready to enter an initial address into the envelope
frame so as to save the frame with an address showing in the
correct position. First, select Word Options from the Words
menu and set Display Ruler off. Next, go into the frame and,
beginning on character position 0/1, type in your return address
(if you have preprinted envelopes, omit this step).

Now press Enter repeatedly until you are on line 11 as indicated
by "Char:" on the right section of the status bar. Select the
Words menu, press "L" for Left Margin, and type in "32" (without
the quotes). You will now be at Char: 32/11 and all subsequent
lines typed into the frame will have a left margin of 32*. This
is the proper margin to center the destination address on the
envelope. Type in a sample address so that you can save the
frame to your disk with a visible reminder as to where to enter
the destination address. When you save your frame to a disk
file, all printer codes and format options will be saved with
the frame as well.

A Series II By Any Other Name...

Using the Series II or IID, place one envelope, face up (flap
down), in the sheet feeder. Using the Series IIP, place one
envelope face down in the sheet feeder. The laser printer will
prompt you for each envelope. To print envelopes properly on
the model IID, the LaserJet Plus printer driver must be
installed. If an alternate driver is not used, your printer will
handle the envelope as if it were printing both sides due to the
duplex printing capability of the IID.

This is the procedure to set up a second, or tertiary, printer.
It is not necessary to repeat this procedure after you have set
up an additional printer unless you wish to modify settings
invovled in the printer setup.

If you are currently in Framework III and are following the
example, exit from Framework III, remembering to save the
"Contain" frame. Once you have returned to DOS, move to the
directory where Framework III resides (which is, by default
called \FW3). Type "SETUPFW" and then press Enter to run the
Setup program. Choose "2" for additional uses of the Setup
Program.

At the next menu, choose "2" for Current Directory, then "6" for
Printer Installation from the Main menu.

You can now choose which printer you would like to set up. Press
"2" to setup a second printer. Select "1", then press Enter,
for printer driver. Press the PgDn key on your keyboard, then
type "12", and press Enter. This will select the group of
Hewlett Packard drivers. Choose "5" for LaserJet Plus, then
press Enter.

You will need to select the appropriate port to which your
printer is attached. In this case, it should be the same device
as assigned to your first printer. The most common connection
is Parallel (LPT1).

After you have assigned the driver and port, type "M" to return
to the Main menu. Select option "7" to save the changes you
have made. When prompted, insert your Framework Drivers Disk
into the appropriate drive and enter the drive letter.

Printing with the WYSIWYG Frame

All that is required to print with the WYSIWYG envelope is to
load the frame to the desktop, then go into the frame and arrow
down to the destination address. Select the Edit menu and press
"T" to turn Typeover on. Now type a new destination address over
the sample address you had previously saved with the file.

Select Begin from the Print menu and your HP printer will prompt
you for an envelope (or will print to the envelope currently
loaded). This frame will work with any of the HP LaserJet
(portrait) printer drivers selected as the destination, as well
as with the GENERIC and ASCII printer drivers since our own
Starting control codes will override those which may be sent by
the driver.

Having this file available on your disk will enable you or any
user of Framework to quickly recognize where to enter an address
and how to print the envelope. Should you wish to move the
destination address to another location on your envelope, you can
insert blank lines to push it lower or remove lines to raise it
higher. You can also change the left margin within the frame to
move the address to the left or to the right. No matter what
offset you are trying to achieve, you will see the change
reflected immediately in your envelope frame, so you know where
the addresses will be positioned before you begin printing.

Merging Envelopes 101

This file is used to automatically print a large number of
envelopes from a database containing the names and addresses of
your mailing list customers. This file assumes your business
address, or return address is preprinted on the envelope.
Additionally, this frame is designed for the LaserJet Series II
printers only (including IID and IIP), as the DeskJet is not
designed for mass envelope feed functions. Finally, it is
assumed you have a basic familiarity with databases and
understand the concepts of fields and records.

First, create an empty word frame. Press the spacebar for label
editing and enter "EnvMerge" (this example and others to follow
are all entered without quotes). Next, go into the word frame
and create another empty word frame. Press the spacebar for
label editing and label this frame "Envelope" (the outer frame
is now a containing frame). Now, with the border of the
Envelope frame highlighted, create a database frame. Press the
spacebar and label this frame "Data".


The "Data" database frame can, of course, be replaced with a
database you may already have created. In this case, you would
simply delete the DATA frame and reference your database frame
when selecting Mailmerge with {} in the Apps menu. For example,
if your existing database's name is Clients, you would bring
Clients to the desktop and select Apps: Mailmerge With {}. At
the prompt line, you enter the containing frame name, followed by
a period, then the database name "Clients". Remember to change
the field references in the angle brackets of your Envelope
frame should your field names vary even slightly from the
example shown.

Go into the database frame and type "Firstname" into the first
field position, press the ’ key and type "M.I." into the second
field, "Lastname" into the third field, "Company" into the
fourth, "Address" into the fifth, "City" into the sixth, "State"
into the seventh, and "Zipcode" into the eighth field.

Enter a couple of sample records into the data area of the
database, ensuring at least two complete records have been
entered (since most addresses start with numbers, it is
recommended that you specify entry format to character type for
the address field which is set from the Numbers menu). Now
press Out and = to take you to the Envelope frame, press In to
enter the contents area of this word frame. Beginning at the
upper left position of the frame (Char: 0/1), enter:




,

Now press Out, and from the border of the Envelope frame, select
Control Options from the Print menu. Press "S" for Starting
Control Codes and enter the following codes at the edit line (on
one contiguous line):

{ESC}E{ESC}&l1o26e25f3H{ESC}&a40L

* If manual feed is not necessary or desired, omit the 3H
from the above string and capitalize the preceding f to
read 25F
* If you are printing to a LaserJet IIP, enter the
following codes in lieu of the codes previously listed.
This will adjust for the right-hand feed of the envelope:

{ESC}E{ESC}&l1o13e25f3H{ESC}&a31L

Finally, select Format Options from the Print menu and enter the following values:

Offset from Left: 0
Lines per Page: 19
Spacing: 1
Width of Line: 65
Top Margin: 0
Bottom Margin: 0

Now press Ctrl-Return to save the containing frame to the disk.

Printing with the Envelope Merge Frame

First, load the containing frame (EnvMerge.FW3) to a clean
desktop. Next, ensure the database is updated to reflect the
names and addresses of the desired recipients of the envelopes.

Navigate into the border of the word frame (Envelope) and select
Mailmerge Using {} from the Apps menu. At the edit line, when
prompted, type in: "EnvMerge.Data". The computer will then
begin printing and the HP printer will prompt for an envelope or
feed one already loaded.

I sincerely hope this will benefit you and, perhaps too, you
might investigate Framework's powerful label and form letter
printing capabilities (if you haven't already), as it is a
process similar to the printing of merged envelopes described
above. Aligning and printing envelopes can be time consuming
when using a trial and error method; however, with the creation
of these files you should find printing envelopes to be painless
and worry-free. s



  3 Responses to “Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : TN9003.ZIP
Filename : ENVELOPE.TXT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/