Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Dynamically changing position of a summation field Post Reply Post New Topic
Author Message
eckroland1
Newbie
Newbie
Avatar

Joined: 17 May 2009
Online Status: Offline
Posts: 1
Quote eckroland1 Replybullet Topic: Dynamically changing position of a summation field
    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,
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.023 seconds.