LocalReport.ShowDetailedSubreportMessages 属性

获取或设置一个 boolean 值,该值指示当子报告中出错时是否应显示详细消息。

命名空间:  Microsoft.Reporting.WinForms
程序集:  Microsoft.ReportViewer.WinForms(在 Microsoft.ReportViewer.WinForms.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.WinForms 命名空间