Spire.XLS for .NET is a professional Excel .NET component that can be used to any type of .NET 2.0, 3.5, 4.0 or 4.5 framework application, both ASP.NET web sites and Windows Forms application.

Thu Dec 30, 2010 3:02 am

Hello,
I didn't find Excel autofit in the features of the Spire .XLS. Does it support Excel autofit?
THANKS!

moonsky
 
Posts: 9
Joined: Mon Dec 13, 2010 7:39 am

Thu Dec 30, 2010 10:04 am

Thank you for inquiry.
The Spire .XLS supports Excel autofit. As Excel autofit is basic function, we didn’t take it into the features of the Spire .XLS. If you want to do so, you can follow the codes:
sheet.AutoFitColumn(0);
sheet.AutoFitColumn(1);
sheet.AutoFitRow(0);
sheet.AutoFitRow(1);
sheet.Columns[0].ColumnWidth = 3;
e-iceblue support
User avatar

iceblue support
 
Posts: 240
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.XLS