I am in the process of converting a VB6 application to C#. One of the things that the legacy application does to a particular Crystal Report is the following:
I have no idea what the section format is doing nor do I know how to convert it.
In C# SectionFormat is not a property on the ReportDocument class. It appears as if it exists as a ReadOnly property when I do this:
But there aren't any properties on the SectionFormat class that let me specify the format like it is being done in VB6.
Code:
With frmResources2.Report1
.ReportFileName = "PO.rpt"
.SelectionFormula = "..."
.SectionFormat(0) = "GF1;F;F;F;X;X;X;X;X;X"
.SectionFormat(1) = "TITLE;F;F;F;X;X;X;X;X;X"
.Action = 1 ' Print
End With
In C# SectionFormat is not a property on the ReportDocument class. It appears as if it exists as a ReadOnly property when I do this:
Code:
report.ReportDefinition.Sections[counter].SectionFormat;