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 SectionFormatCrSection = CrReportClientDocument.ReportDefinition.DetailArea.Sections(0)
CrSectionFormat = CrSection.Format
CrSectionFormat.EnableSuppress = True
CrReportClientDocument.ReportDefController.ReportSectionController.SetProperty(CrSection, CrReportSectionPropertyEnum.crReportSectionPropertyFormat, CrSectionFormat)CrystalReportViewer1.ReportSource = CrReportClientDocument
- For more Report Application Server sample applications, see the .NET RAS SDK Samples wiki.
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