共用方式為


LocalReport.ShowDetailedSubreportMessages 屬性

取得或設定 Boolean 值,此值可在子報表中發生錯誤時,指出是否應顯示詳細訊息。

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

語法

'宣告
Public Property ShowDetailedSubreportMessages As Boolean
public bool ShowDetailedSubreportMessages { get; set; }
public:
property bool ShowDetailedSubreportMessages {
    bool get ();
    void set (bool value);
}
member ShowDetailedSubreportMessages : bool with get, set
function get ShowDetailedSubreportMessages () : boolean
function set ShowDetailedSubreportMessages (value : boolean)

屬性值

類型:Boolean
如果應顯示詳細訊息則為 true,否則為 false。預設值為 true。

備註

This property is useful for debugging subreport errors. If it is set to false, the generic message "An error occurred during subreport processing" is displayed.

注意事項注意事項

Errors in subreport processing do not affect whether the main report is processed successfully.You can still view and interact with the main report, such as exporting and printing it.

Changing this property causes the report definition to be updated and the report to be reprocessed.

請參閱

參考

LocalReport 類別

Microsoft.Reporting.WebForms 命名空間