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
'Declaration
<BrowsableAttribute(False)> _
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> _
Public Property PrinterSettings As PrinterSettings
'Usage
Dim instance As ReportViewer
Dim value As PrinterSettings
value = instance.PrinterSettings
instance.PrinterSettings = value
[BrowsableAttribute(false)]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
public PrinterSettings PrinterSettings { get; set; }
[BrowsableAttribute(false)]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility::Hidden)]
public:
property PrinterSettings^ PrinterSettings {
PrinterSettings^ get ();
void set (PrinterSettings^ value);
}
/** @property */
public PrinterSettings get_PrinterSettings ()
/** @property */
public void set_PrinterSettings (PrinterSettings value)
public function get PrinterSettings () : PrinterSettings
public function set PrinterSettings (value : PrinterSettings)
Property Value
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, FromPage, and 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
Reference
ReportViewer Class
ReportViewer Members
Microsoft.Reporting.WinForms Namespace