cancel
Showing results for 
Search instead for 
Did you mean: 

RAS SDK: Modifications with RunnintTotalFieldController cannot be saved

0 Kudos

Hi!

While using RAS SDK I have encountered a problem while modifying or adding new RunningTotalFields with the RunningTotalFieldController. I have a following code, for example:

RunningTotalField tempRTF = (RunningTotalField)cDoc.DataDefinition.RunningTotalFields[0].Clone();
tempRTF .ResetCondition = ((RunningTotalField)cDoc.DataDefinition.RunningTotalFields[0]).EvaluateCondition.Replace(">", "<");
cDoc.DataDefController.RunningTotalFieldController.Modify(cDoc.DataDefinition.RunningTotalFields[0], tempRTF);

oReport.SaveAs(oReport.FileName);

SaveAs method returns following error: "System.Runtime.InteropServices.COMException: The report application server failed".

The same happens, no matter whatever modification I do with the Running Total Field Controller. Modifications with other controllers don't cause any problems.

Is there something wrong with my code?

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Sahin,

Use the Object browser and search for that API:

CrystalDecisions.ReportAppServer.Controllers.RunningTotalFieldController RunningTotalFieldController { get; }

Read only...

You will have to do what changes you want using a Condition field in the Designer, if that's possible.

Don