This document is archived and information here might be outdated. Recommended version. |
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
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.