共用方式為


Microsoft.Reporting.WebFormsClient.ReportViewer.reportAreaContentType 屬性

取得 Microsoft.Reporting.WebFormsClient.ReportAreaContent 值,這個值表示報表區域的目前內容類型。

注意

若要取得或設定用戶端 API 屬性的屬性值,您必須呼叫名稱前置詞為 get_ 和 set_ 的屬性存取子方法。

語法

if ($find(viewerId).get_reportAreaContent() == 
      Microsoft.Reporting.WebFormsClient.ReportAreaContent.ReportPage)
...

傳回值

Microsoft.Reporting.WebFormsClient.ReportAreaContent 列舉值。

備註

某些方法 (例如 invokePrintDialog) 要求在報表區域中載入報表。在使用這些方法之前,請使用這個屬性檢查報表區域是否包含報表頁面。

當網頁正在執行回傳或用戶端控制項正在載入內容時,存取方法或屬性會導致例外狀況並且顯示下列訊息:「報表或網頁正在更新。請等候目前動作完成。」請使用 isLoading 屬性檢查報表或網頁是否正在更新以及您是否可以存取方法和屬性。

請參閱

參考

Microsoft.Reporting.WebFormsClient.ReportViewer 類別