次の方法で共有


ReportViewer.PrinterSettings プロパティ

[印刷] ダイアログおよびプリンターの [基本設定] ダイアログの初期化に使用される、既定のプリンターおよび印刷オプションの設定を含む PrinterSettings オブジェクトを取得または設定します。

名前空間:  Microsoft.Reporting.WinForms
アセンブリ:  Microsoft.ReportViewer.WinForms (Microsoft.ReportViewer.WinForms.dll 内)

構文

'宣言
<BrowsableAttribute(False)> _
Public Property PrinterSettings As PrinterSettings
[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)

プロパティ値

型 : PrinterSettings
PrinterSettings オブジェクト。

解説

これらのダイアログにユーザーが加えた変更を反映する場合も、このプロパティを更新する必要があります。PrintRange、FromPage、ToPage などのプロパティによるページ範囲設定は、印刷ダイアログの初期化時に ReportViewer で使用されないことに注意してください。ダイアログを起動するときにページ範囲設定を設定するには、PrintDialog メソッドを使用します。

参照

関連項目

ReportViewer クラス

Microsoft.Reporting.WinForms 名前空間