Re: Printing Envelopes


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Robert G Laurin on July 13, 2010 at 06:52:58:

In Reply to: Re: Printing Envelopes posted by Louisa on July 12, 2010 at 08:49:37:

I understand your confusion.

Lets start with the two method of printing using Comet in a Windoze environment.

First method is using a printer configured as a :RAW printer, this is what we did in the DOS days by default. It basically bypasses the Windows' printer drivers and allows us to send commands directly to the printer. That means that we usually have to send Escape sequences to give the printer some directives. Most common is PCL used by all HP Lasers and compatibles.
Examples of this are: (where Esc is '@1B@')
Esc&l6D for 6 lpi
Esc&a20r6C to position cursor at line 20, column 6
Esc&l1O for landscape
Esc&l3A for legal size paper
or
Esc&l2H for selecting manual feed on the printer (aka paper tray)

Second method is to ask the windows driver to do the work for us - this method is totally printer independent and will yield similar results for dot matrix, inkjet, laserjet and even PDF documents.
Examples of this is:
(LineSpacing=6)
(MoveTo=6,20)
(SetOrientation=DMORIENT.LANDSCAPE) - Here I could had used '2', this is a SET value that is predefined in the include file PrintCtl.inc
(SetPaperSize=DMPAPER.Legal - Again, here I could had used '5', this is a SET value that is predefined in PrintCtl.inc
and
(SetDefaultSource=DMBIN.Manual - This is a 4 when using Windows

Now, there is one huge difference that I need to point out immediately, when using PCL Trays and Windows Paper Bin for paper source selection, the values are not the same. Tray 'n' is not necessarily the same as Bin 'n'. Windows as predefined value that are then converted to the proper tray by the printer driver. I usually try to stay away from tray/bin selection if I am dealing with paper that have different characteristics (size). I use tray selection only when I am dealing with a multiple pre-printed forms and/or paper color.

Usually selecting by size is the best and if you want to manually feed envelopes or special paper then use the tray/bin selection. In windows printing, there's a setting for envelopes DMBIN.Envelope which is 5 that is usually treated as a manual feed.


You mentioned that you already had the envelope address printing program working but you failed to say if you used RAW or Windows printing. I do hope that this shed some light on your problem. Let me know if I can be of further assistance.

Have fun !


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]