ActiveReports 10
MinColumnWidth Property
Example 

GrapeCity.ActiveReports.Export.Excel.v10 Assembly > GrapeCity.ActiveReports.Export.Excel.Section Namespace > XlsExport Class : MinColumnWidth Property

Sets or returns a value in inches indicating how small columns can be in the Excel document. Larger values reduce number of columns in a sheet.

Syntax
'Declaration
 
Public Property MinColumnWidth As Single
public float MinColumnWidth {get; set;}

Property Value

Single. The default value is 0.1.
Remarks
This is typically the single most important variable to tweak when exporting to Excel.
Example
GrapeCity.ActiveReports.Export.Excel.Section.XlsExport docexp = new GrapeCity.ActiveReports.Export.Excel.Section.XlsExport();
docexp.AutoRowHeight = true;
docexp.DisplayGridLines = true;
docexp.FileFormat = GrapeCity.ActiveReports.Export.Excel.Section.FileFormat.Xls95; //or Xls97Plus or Xlsx
docexp.MinColumnWidth = 3;
docexp.MinRowHeight = 1;
docexp.MultiSheet = true;
docexp.RemoveVerticalSpace = true;
docexp.UseCellMerging = false;
docexp.Export(this.viewer1.Document, Application.StartupPath + "\\x.xls");
Dim docexp As New GrapeCity.ActiveReports.Export.Excel.Section.XlsExport()
docexp.AutoRowHeight=True
docexp.DisplayGridLines=True
docexp.FileFormat=GrapeCity.ActiveReports.Export.Excel.Section.FileFormat.Xls95 'Or Xls97Plus
docexp.MinColumnWidth=3
docexp.MinRowHeight=1
docexp.MultiSheet=True
docexp.RemoveVerticalSpace=True
docexp.UseCellMerging=False
docexp.Export(Me.viewer1.Document, Application.StartupPath + "\x.xls")
See Also

Reference

XlsExport Class
XlsExport Members