SAP Knowledge Base Article - Public

1369015 - How to suppress a report section at runtime using Report Application Server (RAS) in Visual Studio .NET

Symptom

How to suppress a report section at runtime using Report Application Server (RAS) in Visual Studio .NET

Resolution

  • To suppress a report section, use the code below.
  • Code describes suppression of a detail section.
Dim CrSection As New Section
Dim CrSectionFormat As SectionFormat
CrSection = CrReportClientDocument.ReportDefinition.DetailArea.Sections(0)
CrSectionFormat = CrSection.Format
CrSectionFormat.EnableSuppress = True
CrReportClientDocument.ReportDefController.ReportSectionController.SetProperty(CrSection, CrReportSectionPropertyEnum.crReportSectionPropertyFormat, CrSectionFormat)
CrystalReportViewer1.ReportSource = CrReportClientDocument

Keywords

KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio