I have an Excel file with Chart Area and Legend in it. The original Legend font can be any type and any size. Let’s say the font size is 10.5 before running the code.
After running the following simple C# code, the Legend font size changes to 9.7:
Please try the attached latest version v5.2.0.1. I have tested using your code and template (input)file, it works fine, the legend font is “Calibri, 7.5”, it remains the same in the output file too.
Well, it can be due to the behavior of different MS Excel versions. I set the font of legend to 11 for your template file “Legend.xls” by opening the file into MS Excel manually.When I open the generated file into Ms Excel 2007, the legend font is 10.1. But, when I open the generated file into MS Excel 2003, the font remains 11 for the legend box.
We will investigate your issue (logged as: CELLSNET-22027) whether we can do something for it or it is routine of Ms Excel versions.
Well, we confirmed that it is MS Excel 2007 behavior and not an issue with Aspose.Cells product.
I open the legend.xls in MS Excel 2003, change the font size, save the file in MS Excel 2003. Now, open the saved file in MS Excel 2007, i got 10.1 too. So doing steps in manual way also gives the same results.
Thank you.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.