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
public int StartPrinting (
    IEnvelope PixelBounds,
    int hDcPrinter
HRESULT StartPrinting(
  IEnvelope* PixelBounds,
  long hDcPrinter,
  long* hDcRet


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.


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