Share via


ReportPrintEventArgs.PrinterSettings Property

Gets or sets the printer settings to use for the current operation.

Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)

Syntax

'Declaration
Public Property PrinterSettings As PrinterSettings
'Usage
Dim instance As ReportPrintEventArgs
Dim value As PrinterSettings

value = instance.PrinterSettings

instance.PrinterSettings = value
public PrinterSettings PrinterSettings { get; set; }
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 that contains the printer settings.

Remarks

By default, this property contains the same values as the PrinterSettings property in ReportViewer, except that its PrintRange property is always set to AllPages for the Print event.

This property cannot be set to null (Nothing in Visual Basic).

See Also

Reference

ReportPrintEventArgs Class
ReportPrintEventArgs Members
Microsoft.Reporting.WinForms Namespace