ReportViewer.PrinterSettings Property
Gets or sets a PrinterSettings object that contains the settings for the default printer and print options that are used to initialize the Print dialog and the printer's Preferences dialog.
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)
Syntax
[BrowsableAttribute(false)]
public PrinterSettings PrinterSettings { get; set; }
public:
[BrowsableAttribute(false)]
property PrinterSettings^ PrinterSettings {
PrinterSettings^ get();
void set(PrinterSettings^ value);
}
[<BrowsableAttribute(false)>]
member PrinterSettings : PrinterSettings with get, set
<BrowsableAttribute(False)>
Public Property PrinterSettings As PrinterSettings
Property Value
Type: System.Drawing.Printing.PrinterSettings
A PrinterSettings object.
Remarks
You should also update this property to reflect the user's changes in those dialogs. Note that the page range settings, such as the PrintRange, T:System.Drawing.Printing.FromPage, and T:System.Drawing.Printing.ToPage properties, are not used by the ReportViewer when initializing the print dialog. To set the page range settings when launching the dialog, use the PrintDialog method.
See Also
ReportViewer Class
Microsoft.Reporting.WinForms Namespace
Return to top