IDocumentProperties Interface

Inherited from

IDispatch

IUnknown

IADs

Applies to Objects

Domain

You can use the IDocumentProperties interface to view and modify document properties.

Property 

Description

Color

Gets and Sets a boolean value which indicates whether the document is colored or monochrome. This property is valid only if IsColorPropertySupported is True

Copies

Gets and Sets the number of document copies. If the new value being set is above the maximum copies possible, the value is set to 1

CurrentPaperSize

Gets and Sets the document paper size

DuplexType

Gets and Sets duplex (double-sided) printing type for the document. This property is valid only if IsDuplexTypePropertySupported is True

IsColorPropertySupported

Gets a boolean value which indicates whether the printer supports color or not

IsDuplexTypePropertySupported

Gets a boolean value which indicates whether the printer supports duplex (double-sided) printing or not

IsScalingPropertySupported

Gets a boolean value which indicates whether the printer supports scaling or not

IsTrueTypeFontPropertySupported

Gets a boolean value which indicates whether the printer supports special handling for TrueType fonts or not

MaximumCopies

Gets the number of maximum copies possible

Orientation

Gets and Sets the document orientation

PaperName

Gets a user friendly name of the current paper type (form)

PaperSource

Gets a user friendly name of the current paper type (form)

Scaling

Gets and Sets the document scaling in %. This property is valid only if IsScalingPropertySupported is True

SupportedPaperNames

Gets an array of string which contains the names of papers supported by the current printer. This corresponds to the SupportedPaperSizes and SupportedPaperValues property

SupportedPaperSizes

Gets an array of pairs numbers which contains the size in 10th of millimeter for the papers supported by the current printer. This corresponds to the SupportedPaperNames and SupportedPaperValues property

SupportedPaperSizeValues

Gets an array of numbers which contains the values to use for the CurrentPaperSize property for the current printer. This corresponds to the SupportedPaperNames and SupportedPaperSizes property

SupportedPaperSources

Gets an array of integers which contains the valid values of PaperSources supported by the current printer

SupportedPaperSourcesNames

Gets an array of names which contains the valid names of PaperSources supported by the current printer. This corresponds to the SupportedPaperSources property

SupportedResolutions

Gets an array of pair of integers which contains various resolutions supported. The first integer in the pair is a value for XResolution and the second is for YResolution

TrueTypeFont

Gets and Sets how TrueType font printing is handled. This property is valid only if IsTrueTypeFontPropertySupported is True

XResolution

Gets and Sets the X-axis resolution of the document(s). If this value is negative, the value represents the PrintQuality. The negative values can be -1 = Draft, -2 = Low, -3 = Medium, -4 = High

YResolution

Gets and Sets the Y-axis resolution of the document(s). If the value of this property is 0, the XResolution is DPI(Dots Per Inch.)