Dynamically changing position of a summation field
Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=6374
Printed Date: 19 Apr 2024 at 4:52pm
Topic: Dynamically changing position of a summation field
Posted By: eckroland1
Subject: Dynamically changing position of a summation field
Date Posted: 17 May 2009 at 11:39am
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,
|
|