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


IPrinter.StartPrinting Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Output)  

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,
  long hDcPrinter,
  long* hDcRet
);
[C++]

Parameters PixelBounds [in]
PixelBounds is a parameter of type IEnvelope hDcPrinter [in] hDcPrinter is a parameter of type long hDcRet [out, retval] hDcRet is a parameter of type long

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