Hello,
Hi,
Thanks for the quick response.
What template file do you need please (I am unsure of what file you are referring to)?
Thank you.
Hi,
Thank you please find my excel template attached which is what Aspose.Cells has exported.
Hi Richard,
Thanks for your posting and using Aspose.Cells.
You provided the output file because it seems to be generated with Aspose.Cells. Could you please provide the template (source) file instead.
Anyway, I have autofit columns using the following code with your given file by opening it and autofitting it and it looks fine. I have attached the output xlsx file for your reference.
C#
string filePath = @“F:\Lease+Expiry+Profile+20140425+1529±+for+Aspose+Support.xlsx”;
Workbook workbook = new Workbook(filePath);
Worksheet worksheet = workbook.Worksheets[0];
worksheet.AutoFitColumns();
workbook.Save(“out.xlsx”);
Hi Richard,
var book = new Workbook(myDir + “sample.xlsx”);
var sheet = book.Worksheets[0];
sheet.AutoFitColumns(new AutoFitterOptions() { OnlyAuto = true});
book.Save(myDir + “output.xlsx”, SaveFormat.Xlsx);
Thanks for the reply. I tried with the AutoFitterOptions but it is still not working.
VB.NET
:Hi Richard,
Hi Richard,
Thanks for using Aspose.Cells.
Please download and try this fix: Aspose.Cells for .NET (Latest Version) and let us know your feedback.
The issues you have found earlier (filed as CELLSNET-42591) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
I tested this with 8.0.2.0 and it is now working correctly.
Hi,