ActiveReports 8
AutoRowHeight Property
Example 

Sets or returns a value indicating whether Excel should set the height of the row based on the contents of that row.
Syntax
'Declaration
 
Public Property AutoRowHeight As System.Boolean
public System.bool AutoRowHeight {get; set;}

Property Value

Boolean. Set to True if Excel should set the height of the row based on the contents of that row. Otherwise the XlsExport will calculate the height of the rows. In some cases this may make the output look better inside Excel. However, a value of True may adversely affect pagination when printing from Excel, as it will often cause Excel to stretch the height of the page. The default value is False.
Remarks
This property should usually not be set to True when the UseCellMerging property is True.
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

Support Forum