Export (0) Print
Expand All

CrystalReportViewer.ViewTimeSelectionFormula Property

Gets or sets the record selection formula to filter the data that are currently used in the report.

Namespace   CrystalDecisions.Windows.Forms
Assembly  CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)


public sealed string ViewTimeSelectionFormula {get; set;}

This example shows how to set the ViewTimeSelectionFormula property for the report.


    private void SetViewTimeSelectionFormula(String salesAmount, String customerName)
    {
      String selectionFormula = "{Customer.Last Year's Sales} > " + salesAmount
        + " AND Mid({Customer.Customer Name}, 1) > \"" + customerName + "\"";
      crystalReportViewer.ViewTimeSelectionFormula = selectionFormula;
    }

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports .NET 10
Show:
© 2014 Microsoft