This document is archived and information here might be outdated.  Recommended version.


IPaper.Attach Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Output > ESRI.ArcGIS.Output > Interfaces > IP > IPaper Interface > IPaper.Attach Method
ArcGIS Developer Help

IPaper.Attach Method

Attach object to specified DEVMODE and DEVNAMES structures. This must be called before using other properties and methods.

[Visual Basic .NET]
Public Sub Attach ( _
    ByVal hDevMode As Integer, _
    ByVal hDevNames As Integer _
)
[C#]
public void Attach (
    int hDevMode,
    int hDevNames
);
[C++]
HRESULT Attach(
  OLE_HANDLE hDevMode,
  OLE_HANDLE hDevNames
);
[C++]
Parameters
hDevMode [in]

hDevMode is a parameter of type OLE_HANDLE hDevNames [in]
hDevNames is a parameter of type OLE_HANDLE

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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.

See Also

IPaper Interface

.NET Samples

Print preview using the PageLayoutControl