共用方式為


ReportPrintEventArgs.PrinterSettings 屬性

取得或設定要用於目前作業的印表機設定。

命名空間:  Microsoft.Reporting.WinForms
組件:  Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.dll 中)

語法

'宣告
Public Property PrinterSettings As PrinterSettings
    Get
    Set
'用途
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);
}
member PrinterSettings : PrinterSettings with get, set
function get PrinterSettings () : PrinterSettings
function set PrinterSettings (value : PrinterSettings)

屬性值

型別:System.Drawing.Printing.PrinterSettings
包含印表機設定的 PrinterSettings 物件。

備註

根據預設,這個屬性包含和 ReportViewer 中的 PrinterSettings 屬性相同的值,不同之處在於它的 PrintRange 屬性對於 Print 事件永遠設為 AllPages

這個屬性不能設為 nullnull 參考 (在 Visual Basic 中為 Nothing) (在 Visual Basic 中為 Nothing)。

請參閱

參考

ReportPrintEventArgs 類別

Microsoft.Reporting.WinForms 命名空間