SAP Knowledge Base Article - Public

1955637 - How to: Modify Conditional Formula using RAS

Symptom

Code sample on how to modify the Section Condition formula

Environment

Crystal Reports Developer for Visual Studio

Resolution

Code smaple on how to:


 // Clone a Section Format and use ReportSectionController.SetPropety to modify the ConditionFormulas

 CrystalDecisions.ReportAppServer.ReportDefModel. SectionFormat newFormat = reportSection.Format.Clone(true);
 newFormat.ConditionFormulas[(CrystalDecisions.Re portAppServer.ReportDefModel.CrSectionAreaFormatConditionFormulaTypeEnum)index].Text = newFormulaText;
 rptClientDoc.ReportDefController.ReportSectionCo ntroller.SetProperty(reportSection, CrReportSectionPropertyEnum.crReportSectionPropertyFormat, newFormat);

Keywords

Crsytal Reports Developer for Visual Studio, crforvs, crvs, condition formula , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio