Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15648

Converting VB6 CrystalReport SectionFormat to C#

$
0
0
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:
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

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:
Code:

report.ReportDefinition.Sections[counter].SectionFormat;
But there aren't any properties on the SectionFormat class that let me specify the format like it is being done in VB6.

Viewing all articles
Browse latest Browse all 15648

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>