|
Hi, I am using Crystal 2008 RAS API in C# and have created a report writer.
I am having an issue changing position of a summation field in report footer, i just want to change the left position of the field, I have done this on other fields but its not working when i try on summations. Please provide the solution how to do this or code would be the best I have the following to create the summation field:
SummaryField boSumFieldObject = new SummaryField(); boSumFieldObject.SummarizedField = boFieldObject;
boSumFieldObject.Name = "ReportTotals"; boSumFieldObject.Operation = CrSummaryOperationEnum.crSummaryOperationSum; boSumFieldObject.Type = fieldType; if (m_RasDoc.DataDefController.SummaryFieldController.CanSummarizeOn(boFieldObject)) m_RasDoc.DataDefController.SummaryFieldController.Add(-1, boSumFieldObject);
I've even tried getting the field element like so:
CrystalDecisions.ReportAppServer.ReportDefModel.ReportObjects groupFooterObjects = m_RasDoc.ReportDefController.ReportDefinition.DetailArea.Sections[1].ReportObjects;
groupFooterObjects[0].Left = 400; groupFooterObjects[0].Top = 300;
so it changes the Left position but does not visually apply it.
Thanks,
|