We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Default font is being overwritten to Calibri

When using a spreadsheet as a template with font set to Trebuchet MS, the generated spreadsheet sets the default font to Calibri rather than retaining Trebuchet MS. Can this behavior be fixed?


Thanks for your posting and using Aspose.Cells.

We have tested this issue with the following sample code using the source excel using the latest version
Aspose.Cells for .NET v8.7.0.2. The source excel file worksheet has Trebuchet MS set. But after running the code, nothing happens to output excel file and it also contains Trebuchet MS.

I have attached the source excel file and the output excel file for a reference.

If your issue still occurs, then please provide us your source excel file and the sample code console application replicating this issue. We will look into it and help you asap.


string filePath = @“F:\Shak-Data-RW\Downloads\source.xlsx”;

Workbook workbook = new Workbook(filePath);

Worksheet worksheet = workbook.Worksheets[0];

worksheet.Cells[“C3”].PutValue(“Hello World”);


Something must have changed between the current downloadable DLL (v8.7.0.0) and v8.7.0.2 which you attached because using your provided DLL then the behavior is as a expected.

When will v8.7.0.2 be available for download and be usable in a production environment?


Good to know that your issue is sorted out by the latest fix v8.7.0.2. Well, you may use this fix for production server, it will behave like an official release of the product. It has all the functionality (full fledged) of Aspose.Cells for .NET v8.7.0 till this fix. We normally provide quick fixes (interim releases) into support forums for the users against their issues. However, our next official release of the product i.e., Aspose.Cells for .NET v8.7.1 (which will also include the functionality of this fix) is scheduled to be released after a couple of weeks (the date is not finalized yet).

Thank you.