LocalReport.ShowDetailedSubreportMessages Property

Gets or sets a Boolean value that indicates whether detailed messages should be displayed when an error occurs in a subreport.

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)

Syntax

'Declaration
<DefaultValueAttribute(True)> _
<NotifyParentPropertyAttribute(True)> _
Public Property ShowDetailedSubreportMessages As Boolean
'Usage
Dim instance As LocalReport
Dim value As Boolean

value = instance.ShowDetailedSubreportMessages

instance.ShowDetailedSubreportMessages = value
[DefaultValueAttribute(true)] 
[NotifyParentPropertyAttribute(true)] 
public bool ShowDetailedSubreportMessages { get; set; }
[DefaultValueAttribute(true)] 
[NotifyParentPropertyAttribute(true)] 
public:
property bool ShowDetailedSubreportMessages {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_ShowDetailedSubreportMessages ()

/** @property */
public void set_ShowDetailedSubreportMessages (boolean value)
public function get ShowDetailedSubreportMessages () : boolean

public function set ShowDetailedSubreportMessages (value : boolean)

Property Value

true if detailed messages should be displayed; otherwise, false. The default is true.

Remarks

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.

Note

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.

See Also

Reference

LocalReport Class
LocalReport Members
Microsoft.Reporting.WebForms Namespace