SetPrinterSpecifications method (IEPrint)

Visual Basic example

Visual C++ example

 

Syntax

short SetPrinterSpecifications(BSTR pszPrinterName, IEpnPrinterSpecifications *pPrinterSpecifications);

Overview

Refer to Setting and Getting ePrint Printer Specifications

Remarks

Sets the specifications of an ePrint printer.

Support for Basic functionality must be unlocked by calling the UnlockSupport method before using this method.

These settings will be used whenever the user prints using this ePrint printer.

When setting the specifications of an OEM printer, the user must first install the OEM printer using InstallOEMPrinter method.

Befor calling this method, the user should set the values of the following properties of the IEpnPrinterSpecifications object:

DimensionsInInches property

MarginsPrinter property

PaperHeight property

PaperID property

PaperSizeName property

PaperWidth property

PortraitOrient property

PrintQuality property

YResolution property

To get the current values for the above properties, call the GetPrinterSpecifications method.

See Also

Elements:

InstallOEMPrinter method. GetPrinterSpecifications method, DimensionsInInches property, MarginsPrinter property, PaperHeight property, PaperID property, PaperSizeName property, PaperWidth property, PortraitOrient property, PrintQuality property, YResolution property

Topics:

ePrint: Getting and Setting Printer Specifications