Skip to Content

RAS SDK: Modifications with RunnintTotalFieldController cannot be saved


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);


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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 23, 2020 at 07:50 PM

    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.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.