Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

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