Setting the height of detail section with RAS SDK
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?
Bhushan Hyalij replied
see the below sample to add a new section to the report.
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.
SAP Active Global Support
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place