Udostępnij za pośrednictwem


Zdarzenie ReportViewer.SubmittingParameterValues

Occurs when parameter values are submitted to the report server.

Przestrzeń nazw:  Microsoft.Reporting.WinForms
Zestaw:  Microsoft.ReportViewer.WinForms (w Microsoft.ReportViewer.WinForms.dll)

Składnia

'Deklaracja
Public Event SubmittingParameterValues As ReportParametersEventHandler
public event ReportParametersEventHandler SubmittingParameterValues
public:
 event ReportParametersEventHandler^ SubmittingParameterValues {
    void add (ReportParametersEventHandler^ value);
    void remove (ReportParametersEventHandler^ value);
}
member SubmittingParameterValues : IEvent<ReportParametersEventHandler,
    ReportParametersEventArgs>
Język JScript nie obsługuje zdarzeń.

Uwagi

This event occurs when the user clicks the View Report button, when the user navigates back to a parent report that contains report parameters from a drillthrough report, or when report parameters are automatically submitted due to dependencies between them. Information about this event is passed in a ReportParametersEventArgs object to the ReportParametersEventHandler delegate, which handles the event. This event only applies to remote processing mode.

Handle this event to read or modify the report parameters before they are submitted to the report server.

For more information about handling events, see Używające zdarzeń.

Przykłady

If you want to prevent parameters from being automatically submitted, subscribe to this event and use the following code:

Private Sub reportViewer1_SubmittingParameterValues(ByVal sender As Object, ByVal e As ReportParametersEventArgs)
    If e.AutoSubmit Then
        e.Cancel = True
    End If
End Sub
void reportViewer1_SubmittingParameterValues(object sender, ReportParametersEventArgs e)
{
    if (e.AutoSubmit)
        e.Cancel = true;
}

Zobacz też

Informacje

ReportViewer Klasa

Przestrzeń nazw Microsoft.Reporting.WinForms

ReportParameter

ReportParameterCollection