共用方式為


ReportViewer.ResetPageSettings 方法

ReportViewer 控制項中目前報表的頁面設定還原為報表定義檔案中的設定。

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

語法

'宣告
Public Sub ResetPageSettings
'用途
Dim instance As ReportViewer

instance.ResetPageSettings()
public void ResetPageSettings()
public:
void ResetPageSettings()
member ResetPageSettings : unit -> unit 
public function ResetPageSettings()

備註

如果您在前一次呼叫 SetPageSettings 時使用 pageSettings 參數的 PrinterSettings 屬性變更印表機設定,便不會還原這些變更。此外,只有您對 ReportViewer 控制項中目前報表所做的變更會還原,呼叫這個方法並不會影響其父報表或可從目前報表存取的鑽研報表。

如果在呼叫這個方法時 ReportViewer 控制項為整頁模式,則會取消任何目前執行中的報表轉譯作業並立即重新轉譯報表。

請參閱

參考

ReportViewer 類別

Microsoft.Reporting.WinForms 命名空間

GetPageSettings

SetPageSettings