![]() |
This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Output > ESRI.ArcGIS.Output > Interfaces > IP > IPrinter Interface > IPrinter.StartPrinting Method (ArcObjects .NET 10.4 SDK) |
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
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.