Delen 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

'Declaration
Public ReadOnly Property HasPromptsToDisplay As Boolean
'Usage
Dim instance As ReportViewerStatus
Dim value As Boolean

value = instance.HasPromptsToDisplay
public bool HasPromptsToDisplay { get; }
public:
property bool HasPromptsToDisplay {
    bool get ();
}
/** @property */
/** @attribute DebuggerStepThroughAttribute() */ 
public boolean get_HasPromptsToDisplay ()
DebuggerStepThroughAttribute 
public function get HasPromptsToDisplay () : boolean

Property Value

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

Reference

ReportViewerStatus Class
ReportViewerStatus Members
Microsoft.Reporting.WinForms Namespace