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?
Hi,
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.
C#
Workbook workbook = new Workbook(filePath);
Worksheet worksheet = workbook.Worksheets[0];
worksheet.Cells[“C3”].PutValue(“Hello World”);
workbook.Save(“output.xlsx”);
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.
Hi,