Re: Printing Envelopes


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

Posted by Grant Foraker on July 12, 2010 at 07:29:57: Uploaded files: 1

In Reply to: Printing Envelopes posted by Louisa on July 11, 2010 at 14:48:44:

Needed to have white and yellow paper copies of invoices on a HP P300 printer. White in drawer 2 and yellow in drawer 3.

Wth a sample program from Robert, I was able to write TESTBIN whicg gave me the following info about the drawers. Here's thr results for various HP printers ...

----------------- HP 2100 --------------------
1 15 Automatically Select
2 258 First Available Tray
3 1 Tray 1
4 4 Manual Paper Feed
5 2 Tray 2
6 257 Tray 3
----------------- HP 2200 --------------------
1 15 Automatically Select
2 259 Printer Auto Select
3 1 Tray 1
4 4 Manual Feed (Tray 1)
5 258 Tray 2
6 257 Tray 3
----------------- HP 4 Plus ------------------
1 15 Automatically Select
2 257 Auto Select
3 1 Upper Paper Tray
4 4 Manual Paper Feed
5 2 Lower Paper Tray
6 5 Envelope Feeder
7 11 Large Capacity
-----------------HP P3005X -------------------
1 15 Automatically Select
2 257 Printer auto select
3 258 Manual Feed in Tray 1
4 259 Tray 1
5 260 Tray 2
6 261 Tray 3
7 276 Unspecified
8 275 Plain
9 274 Preprinted
10 273 Letterhead
11 2 Transparency
12 272 Prepunched
13 271 Labels
14 270 Bond
15 269 Recycled
16 268 Color
17 267 Light 60-75 g/m2
18 266 Heavy 91-164 g/m2
19 265 Cardstock 164-200 g/m2
20 264 Rough
----------------------------------------------


I then placed the Tray codes into my program ...

LET PAGE = 0
LET OGROSS = 0
LET PTITLE$ = 'CUSTOMER COPY'
PRINT (1) (TR);(SETPRINTERINFO = 8, 260) ! TRAY 2 HAS WHITE PAPER
GOSUB PrintInvoiceCopy

LET PAGE = 0
LET OGROSS = 0
LET PTITLE$ = 'FILE COPY'
PRINT (1) (TR);(SETPRINTERINFO = 8, 261) ! TRAY 3 HAS YELLOW PAPER
GOSUB PrintInvoiceCopy

--------------------------------------------------------------------------
Seems like HP is evolving away from two digit codes to three digit codes and there's no universal numbering scheme. No idea what those other codes on the P300 could be used for.

Some of this may be because you're talking to the print driver and not to the printer. You may get different results from a PCL vs PS driver. Maybe different results from different OS's.

If I was starting fresh, I'd put the "tray discovery" logic in my program and search the description list and capture the codes I needed.


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 ]