on 07-23-2020 11:52 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.