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


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

IPrinter.StartPrinting Method

Initialize Printing.

[Visual Basic .NET]
Public Function StartPrinting ( _
    ByVal PixelBounds As IEnvelope, _
    ByVal hDcPrinter As Integer _
) As Integer
[C#]
public int StartPrinting (
    IEnvelope PixelBounds,
    int hDcPrinter
);
[C++]
HRESULT StartPrinting(
  IEnvelope* PixelBounds,
  OLE_HANDLE hDcPrinter
);
[C++]
Parameters
PixelBounds [in]

PixelBounds is a parameter of type IEnvelope* hDcPrinter [in]
hDcPrinter is a parameter of type OLE_HANDLE

Product Availability

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

Functional License Check

If your application/site is not appropriately licensed, StartPrinting can return an error of E_LICENSENOTAVAILABLE.

Remarks

The StartPrinting method returns a long that represents the hDC (Windows GDI Device Context handle) of the printer object.  After this method is called, the printer object is ready to receive GDI draw instructions directed to its hDC.

See Also

IPrinter Interface