ReplaceSelectionFormula

ReplaceSelectionFormula overrides the selection formula from the current report with the string that is passed.

Syntax

[form.]Report.ReplaceSelectionFormula [(SelectionFormulaString$)]

For example:

CrystalReport1.ReplaceSelectionFormula ("{Company.State}='CA'")

«Uses "{Company.State}='CA'" as the selection formula for the report.»

Remarks

This method DOES NOT use the string in SelectionFormula, and DOES conflict with setting the property. You cannot set the SelectionFormula, property and call ReplaceSelectionFormula in the same code sequence. A Visual Basic error condition will be raised in such a case.

Availability

Runtime only



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com