CrystalReportViewer.ReportRefresh Evento

El evento se activa cuando se actualizan los datos del informe.

Espacio de nombres CrystalDecisions.Web Ensamblado CrystalDecisions.Web (CrystalDecisions.Web.dll)

Sintaxis

Public Event ReportRefresh As CrystalDecisions.Web.RefreshEventHandler
public event CrystalDecisions.Web.RefreshEventHandler ReportRefresh

Datos de evento

El controlador de eventos recibe un argumento de tipo ViewerEventArgs que contiene datos relacionados con este evento. Las siguientes propiedades ViewerEventArgs proporcionan información específica de este evento.

Propiedad Descripción
Handled Obtiene o establece si se ha controlado el evento. Defínalo como True si no desea que tenga lugar la acción predeterminada.

Comentarios

Se generará este evento cuando el control CrystalReportViewer actualice los datos del informe.

Ejemplo

En este ejemplo se muestra cómo establecer el texto de una etiqueta para mostrar un mensaje cuando los datos de informe se han actualizado.

      Private Sub CrystalReportViewer_Refresh _
         (ByVal source As Object, _ 
         ByVal e As CrystalDecisions.Web.ViewerEventArgs) _
         Handles CrystalReportViewer.Refresh
      
         Label.Text = "Data is refreshed."
      
      End Sub
      private void crystalReportViewer_Refresh(object source, CrystalDecisions.Web.ViewerEventArgs e)
      {
         Label.Text = "Data is refreshed.";
      }

Información de versión

Crystal Reports Basic for Visual Studio 2008

Admitido desde: Crystal Reports for Visual Studio .NET 2002

Vea también

Referencia

CrystalReportViewer Clase
CrystalReportViewer Miembros
CrystalDecisions.Web Espacio de nombres