Skip to Content
0
Jul 23, 2020 at 10:52 AM

RAS SDK: Modifications with RunnintTotalFieldController cannot be saved

23 Views Last edit Jul 23, 2020 at 07:50 PM 2 rev

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?