CrystalReportViewer.SelectionFormula Propiedad

Obtiene o establece la fórmula de selección del registro del informe.

Espacio de nombres CrystalDecisions.Windows.Forms Ensamblado CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)

Sintaxis

Public NotInheritable Property SelectionFormula As String
public sealed string SelectionFormula {get; set;}

Ejemplo

En este ejemplo se muestra cómo establecer la propiedad SelectionFormula para el informe.

    Private Sub SetSelectionFormula(ByVal mySalesAmount As String, ByVal myCustomerName As String)
      Dim mySelectionFormula As String = "{Customer.Last Year's Sales} > " & mySalesAmount _
      & " AND Mid({Customer.Customer Name}, 1) > """ & myCustomerName & """"
      CrystalReportViewer.SelectionFormula = mySelectionFormula
    End Sub
    private void SetSelectionFormula(String salesAmount, String customerName)
    {
      String selectionFormula = "{Customer.Last Year's Sales} > " + salesAmount
        + " AND Mid({Customer.Customer Name}, 1) > \"" + customerName + "\"";
      crystalReportViewer.SelectionFormula = selectionFormula;
    }

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.Windows.Forms Espacio de nombres