Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Setting the height of detail section with RAS SDK

Hi, all,

is it possible to locate a section (CrystalDecisions.ReportAppServer.ReportDefModel.Section) in a reportk you and set its maximum height?

When I find a detail section in question like so section = reportClientDocument.ReportDefController.ReportDefinition.DetailArea.Sections[counter];

it just gives me the height of one row.

Is there a way to set a maximum size of it?

Thank you!

Tags:
Former Member
replied

Hi Jelena,

see the below sample to add a new section to the report.

http://scn.sap.com/docs/DOC-6025

in the sample, see below code how the section properties are set.

//Set the properties for the section

    boSection.Kind = CrystalDecisions.ReportAppServer.ReportDefModel.CrAreaSectionKindEnum.crAreaSectionKindDetail;

    boSection.Name = "Detail2";

    boSection.Height = 1000;

    boSection.Width = 11520;

Refer to above sample and write your own code to identify the section and then set the properties.

Othe RAS SDk samples are here.

http://scn.sap.com/docs/DOC-28646

- Bhushan

Senior Engineer

SAP Active Global Support

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Getting started and moving ahead with Crystal Reports .NET applications.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question