PtrDevice:DefaultPaperSource Access/Assign

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > PtrDevice Class >

PtrDevice:DefaultPaperSource Access/Assign

Previous pageReturn to chapter overviewNext page
Type        ShortInt

Purpose

To get/set the DEVMODE.dmDefaultSource member.

 

The access returns the DEVMODE.dmDefaultSource structure member which indicates the default paper source of the printer.  WARNING:  This access is not supported by all printers and can return 0.

 

The assign sets the default paper source for the selected printer.  Supported values are:

 

DMBIN_AUTO

 DMBIN_CASSETTE

DMBIN_ENVELOPE

 DMBIN_ENVMANUAL

DMBIN_FIRST

 DMBIN_LARGECAPACITY

DMBIN_LARGEFMT

 DMBIN_LAST

DMBIN_LOWER

 DMBIN_MANUAL

DMBIN_MIDDLE

 DMBIN_ONLYONE

DMBIN_SMALLFMT

 DMBIN_TRACTOR

DMBIN_UPPER

 DMBIN_USER

 

These values are the same as those defined in the Windows SDK.  Please refer to the Window's SDK for more information concerning these values.

Example

if oPtrDevice:DefaultPaperSource == DMBIN_ENVELOPE

         // the printer is mainly used for envelopes

endif