Dear All,
How to auto adjust column width ?
please help
Thanks & Regards
Hi,
Thank you for contacting Aspose support.
You may use Worksheet.AutoFitColumns method for your need. Please check the below provided code snippet for your reference.
C#
var book = new Workbook(myDir + “sample.xlsx”);
var sheet = book.Worksheets[0];
sheet.AutoFitColumns();
Please let us know if you need further assistance.
Hi
I am using Aspose Cell .NET 8.0.0,
please see generated xls file as enclosed
Hi… it works …
sheet.AutoFitColumns();
workbook.Save(xls);
I put AutoFitColumns before save
Hi,
Good to know that you have figured it out now. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.
Thank you.