ReportPrintEventArgs.PrinterSettings 属性

获取或设置要用于当前操作的打印机设置。

命名空间:  Microsoft.Reporting.WinForms
程序集:  Microsoft.ReportViewer.WinForms(在 Microsoft.ReportViewer.WinForms.dll 中)

语法

声明
Public Property PrinterSettings As PrinterSettings
public PrinterSettings PrinterSettings { get; set; }
public:
property PrinterSettings^ PrinterSettings {
    PrinterSettings^ get ();
    void set (PrinterSettings^ value);
}
member PrinterSettings : PrinterSettings with get, set
function get PrinterSettings () : PrinterSettings
function set PrinterSettings (value : PrinterSettings)

属性值

类型:PrinterSettings
包含打印机设置的 PrinterSettings 对象。

备注

默认情况下,此属性包含的值与 ReportViewer 中的 PrinterSettings 属性值相同,不过,对于 Print 事件,PrintRange 属性始终设置为 AllPages。

此属性不能设置为 nullnull 引用(在 Visual Basic 中为 Nothing)(在 Visual Basic 中为 Nothing)。

请参阅

参考

ReportPrintEventArgs 类

Microsoft.Reporting.WinForms 命名空间