Attach object to specified DEVMODE and DEVNAMES structures. This must be called before using other properties and methods.
[Visual Basic 6.0] Sub Attach(
ByVal hDevMode As OLE_HANDLE, _
ByVal hDevNames As OLE_HANDLE _
)
[Visual Basic .NET] Public Sub Attach ( _ ByVal hDevMode As Integer, _ ByVal hDevNames As Integer _ )
[C#] public void Attach ( int hDevMode, int hDevNames );
[Java] public void attach ( int hDevMode, int hDevNames ) throws IOException, AutomationException
[C++]
HRESULT Attach(
OLE_HANDLE hDevMode,
OLE_HANDLE hDevNames
);
Parameters
hDevMode [in]
hDevMode is a parameter of type OLE_HANDLE
hDevNames [in]
hDevNames is a parameter of type OLE_HANDLE
This method is used by the Printer object, called when the IPrinter::Paper property is set. Most ArcObjects developers will not need to use this method unless they are doing a custom implementation of IPrinter.