Share via


ReportViewer.PrinterSettings 属性

获取或设置一个 PrinterSettings 对象,该对象包含默认打印机的设置和用于初始化**“打印”对话框和打印机的“首选项”**对话框的打印选项。

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

语法

声明
<BrowsableAttribute(False)> _
Public Property PrinterSettings As PrinterSettings
    Get
    Set
用法
Dim instance As ReportViewer
Dim value As PrinterSettings

value = instance.PrinterSettings

instance.PrinterSettings = value
[BrowsableAttribute(false)]
public PrinterSettings PrinterSettings { get; set; }
[BrowsableAttribute(false)]
public:
property PrinterSettings^ PrinterSettings {
    PrinterSettings^ get ();
    void set (PrinterSettings^ value);
}
[<BrowsableAttribute(false)>]
member PrinterSettings : PrinterSettings with get, set
function get PrinterSettings () : PrinterSettings
function set PrinterSettings (value : PrinterSettings)

属性值

类型:System.Drawing.Printing.PrinterSettings
一个 PrinterSettings 对象。

注释

还应更新此属性以反映用户在对话框中进行的更改。注意,初始化打印对话框时,**“ReportViewer”**不使用页范围设置(例如 PrintRange、FromPage 和 ToPage 属性)。若要在启动对话框时设置页范围设置,请使用 PrintDialog 方法。

请参阅

参考

ReportViewer 类

Microsoft.Reporting.WinForms 命名空间