This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IP > IPageLayoutControl Interface > IPageLayoutControl.Printer Property (ArcObjects .NET 10.4 SDK) |
The printer object used by the PageLayoutControl for printing.
[Visual Basic .NET] Public Property Printer As IPrinter
[C#] public IPrinter Printer {get; set;}
[C++]
HRESULT get_Printer(
IPrinter** ppPrinter
);
[C++]
HRESULT putref_Printer(
IPrinter* ppPrinter
);
[C++]
Parameters ppPrinter [out, retval]
ppPrinter is a parameter of type IPrinter ppPrinter [in]
ppPrinter is a parameter of type IPrinter
Unless the Printer property has been set to a specific printer, the property will return the default system printer. Before issuing a print always check that the PageLayoutControl has a printer.
if (axPageLayoutControl1.Printer != null) { axPageLayoutControl1.PrintPageLayout(1, 1, 0); }
If Not AxPageLayoutControl1.Printer Is Nothing Then AxPageLayoutControl1.PrintPageLayout(1, 1, 0) End If
IPageLayoutControl Interface | IPageLayoutControl.Page Property | IPageLayoutControl.PageLayout Property | IPageLayoutControl.PrintPageLayout Method | IPageLayoutControl.PrinterPageCount Property