This document is archived and information here might be outdated. Recommended version. |
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(
void
);
[C++]
HRESULT putref_Printer(
);
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