Share via


ReportViewerStatus.HasPromptsToDisplay Property

 

Gets a Boolean value that indicates whether prompting is supported and there are prompts that can be displayed based on the visibility settings in the ReportViewer control. This property does not indicate whether the prompt areas are actually visible.

Namespace:   Microsoft.Reporting.WinForms
Assembly:  Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)

Syntax

public bool HasPromptsToDisplay { get; }
public:
property bool HasPromptsToDisplay {
    bool get();
}
member HasPromptsToDisplay : bool with get
Public ReadOnly Property HasPromptsToDisplay As Boolean

Property Value

Type: System.Boolean

true if prompting is supported and there are prompts that can be displayed based on the visibility settings in the ReportViewer control; otherwise, false.

Remarks

The ShowParameterPrompts and ShowCredentialPrompts properties both affect the value of HasPromptsToDisplay (see table below).

ShowCredentialPrompts=false

ShowCredentialPrompts=true

ShowParameterPrompts=false

HasPromptsToDisplay is always false.

HasPromptsToDisplay indicates whether there is currently a credentials prompt area that can be displayed.

ShowParameterPrompts=true

HasPromptsToDisplay indicates whether there is currently a parameter prompt area that can be displayed.

HasPromptsToDisplay indicates whether there is currently a credentials prompt area or parameter prompt area that can be displayed.

HasPromptsToDisplay does not indicate whether a prompt area is currently displayed. To see whether a prompt area is currently displayed, use ArePromptsVisible.

See Also

ReportViewerStatus Class
Microsoft.Reporting.WinForms Namespace

Return to top