Using acPRPSUser

A

Adrian Brown

I know you can use the Printer.PaperSize = acPRPSUser to setup a
custom page size in access, but then how do you actually set its size? The
problem I have is the printer feeds through an A4 page after a label, rather
than
just stepping to the next one - but i presume thats because of this size
issue.

Adrian
 
A

Adrian Brown

Also several sites say that if the printer doesnt have custom page size in
its printer options this can cause unexpected results. What is the best way
to print to tractor feed labels?
 
C

Chris Reveille

I do not know if this will help but it is good to have if
you do alot of custom printing.
The following are common constant values for printer
orientation, paper size and tray assignments. Note that
for many printers, tray assignments may custom values
determined by the printer driver with values above 256.
This file and information are provided for information only
and is not supported by ACG Soft
-----------------------------------------------------------

'Orientation
Const ORIENT_PORTRAIT = 1
Const ORIENT_LANDSCAPE = 2

'Paper Sizes
Const DMPAPER_LETTER = 1 ' Letter 8 1/2 x
11 in
Const DMPAPER_LETTERSMALL = 2 ' Letter Small 8
1/2 x 11 in
Const DMPAPER_TABLOID = 3 ' Tabloid 11 x 17 in
Const DMPAPER_LEDGER = 4 ' Ledger 17 x 11 in
Const DMPAPER_LEGAL = 5 ' Legal 8 1/2 x 14 in
Const DMPAPER_STATEMENT = 6 ' Statement 5 1/2
x 8 1/2 in
Const DMPAPER_EXECUTIVE = 7 ' Executive 7 1/4
x 10 1/2 in
Const DMPAPER_A3 = 8 ' A3 297 x 420 mm
Const DMPAPER_A4 = 9 ' A4 210 x 297 mm
Const DMPAPER_A4SMALL = 10 ' A4 Small 210 x
297 mm
Const DMPAPER_A5 = 11 ' A5 148 x 210 mm
Const DMPAPER_B4 = 12 ' B4 250 x 354
Const DMPAPER_B5 = 13 ' B5 182 x 257 mm
Const DMPAPER_FOLIO = 14 ' Folio 8 1/2 x 13 in
Const DMPAPER_QUARTO = 15 ' Quarto 215 x 275 mm
Const DMPAPER_10X14 = 16 ' 10x14 in
Const DMPAPER_11X17 = 17 ' 11x17 in
Const DMPAPER_NOTE = 18 ' Note 8 1/2 x 11 in
Const DMPAPER_ENV_9 = 19 ' Envelope #9 3
7/8 x 8 7/8
Const DMPAPER_ENV_10 = 20 ' Envelope #10 4
1/8 x 9 1/2
Const DMPAPER_ENV_11 = 21 ' Envelope #11 4
1/2 x 10 3/8
Const DMPAPER_ENV_12 = 22 ' Envelope #12 4
\276 x 11
Const DMPAPER_ENV_14 = 23 ' Envelope #14 5
x 11 1/2
Const DMPAPER_CSHEET = 24 ' C size sheet
Const DMPAPER_DSHEET = 25 ' D size sheet
Const DMPAPER_ESHEET = 26 ' E size sheet
Const DMPAPER_ENV_DL = 27 ' Envelope DL 110
x 220mm
Const DMPAPER_ENV_C5 = 28 ' Envelope C5 162
x 229 mm
Const DMPAPER_ENV_C3 = 29 ' Envelope C3
324 x 458 mm
Const DMPAPER_ENV_C4 = 30 ' Envelope C4
229 x 324 mm
Const DMPAPER_ENV_C6 = 31 ' Envelope C6
114 x 162 mm
Const DMPAPER_ENV_C65 = 32 ' Envelope C65
114 x 229 mm
Const DMPAPER_ENV_B4 = 33 ' Envelope B4
250 x 353 mm
Const DMPAPER_ENV_B5 = 34 ' Envelope B5
176 x 250 mm
Const DMPAPER_ENV_B6 = 35 ' Envelope B6
176 x 125 mm
Const DMPAPER_ENV_ITALY = 36 ' Envelope 110 x
230 mm
Const DMPAPER_ENV_MONARCH = 37 ' Envelope
Monarch 3.875 x 7.5 in
Const DMPAPER_ENV_PERSONAL = 38 ' 6 3/4 Envelope
3 5/8 x 6 1/2 in
Const DMPAPER_FANFOLD_US = 39 ' US Std Fanfold
14 7/8 x 11 in
Const DMPAPER_FANFOLD_STD_GERMAN = 40 ' German Std
Fanfold 8 1/2 x 12 in
Const DMPAPER_FANFOLD_LGL_GERMAN = 41 ' German Legal
Fanfold 8 1/2 x 13 in
Const DMPAPER_USER_DEFINED = 256

'Paper Trays
Const DMBIN_UPPER = 1
Const DMBIN_FIRST = DMBIN_UPPER
Const DMBIN_ONLYONE = 1
Const DMBIN_LOWER = 2
Const DMBIN_MIDDLE = 3
Const DMBIN_MANUAL = 4
Const DMBIN_ENVELOPE = 5
Const DMBIN_ENVMANUAL = 6
Const DMBIN_AUTO = 7
Const DMBIN_TRACTOR = 8
Const DMBIN_SMALLFMT = 9
Const DMBIN_LARGEFMT = 10
Const DMBIN_LARGECAPACITY = 11
Const DMBIN_CASSETTE = 14
Const DMBIN_LAST = DMBIN_CASSETTE
Const DMBIN_USER = 256 ' Device specific
custom bin values start here

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top