cancel
Showing results for 
Search instead for 
Did you mean: 

Setting the height of detail section with RAS SDK

0 Kudos

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!

Accepted Solutions (1)

Accepted Solutions (1)

former_member188030
Active Contributor
0 Kudos

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.

Answers (0)