Skip to Content
0
Former Member
Apr 26, 2011 at 11:48 PM

How to set a column's width and padding in code

60 Views

Sirs:

I have a report which has three columns, I'm trying to set some of the report properties in code.

So far, I've been able to set the report margins and the detail section height:

'set the report margins
crDoc.PrintOptions.ApplyPageMargins(New CrystalDecisions.Shared.PageMargins(decReportMarginL, decReportMarginT, decReportMarginR, decReportMarginB))

'set the height of the detail section
Dim section As CrystalDecisions.CrystalReports.Engine.Section = crDoc.ReportDefinition.Sections("Section3")
section.Height = decLabelHeight

But I'm still not able to set the column width or the padding between the columns. Can anyone suggest a way?