This is a migrated thread and some comments may be shown as answers.

Grid Excel export: font warnings in Apple Numbers

9 Answers 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chad
Top achievements
Rank 1
Chad asked on 13 Jan 2016, 02:57 PM

When I export an Excel spreadsheet from the Kendo Grid and then open it with Apple Numbers (the spreadsheet app that ships with Mac OS X), I always get font warnings:

"The font Calibri isn't available on OS X. It was replaced with Trebuchet MS.

"The font Cambria isn't available on OS X. It was replaced with Times New Roman."

I updated my Excel-export code to set the font in each cell to "Times New Roman," and even though I can see that font in all the cells in the spreadsheet, I still get font warnings.

Is there a way to fix this so that my Numbers users don't always have to dismiss a font warning when they open the Kendo-exported XLSX files? Thanks!

9 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 18 Jan 2016, 07:21 AM
Hi,

Please accept my apologies for the delayed response.

I'm still trying to obtain a license for Numbers so I can try this locally.
The online version does not output such warnings, but seems to substitute the font for Times New Roman.

Can you send me samples as they come out of the browser and then after saving the same file through Numbers?
The files are plain XML so we should be able to track down the changes.

Apart from that our standard template contains only a reference to Calibri. There's no mention of Cambria.
So I'm not really sure what the problem might be.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Chad
Top achievements
Rank 1
answered on 25 Jan 2016, 05:33 PM

Here is a Dojo example that generates a simple XLSX file that exhibits this problem:

http://dojo.telerik.com/@cglendenin/afIPI

I also created two files: foo-original.xlsx is the output of that Dojo example (with the font warnings), and foo-numbers-export.xlsx is the result of using Apple Numbers' File->Export To->PDF... menu item. Unfortunately, your forum software will not allow me to attach them to this post, presumably because an xlsx file is actually a zip file. [Forum says, "The selected file(s) cannot be attached because it may exceed the maximum attachment size (2 MB) or is from not allowed type (allowed: .jpg, .jpeg, .gif, .png, .zip)."] I'd be happy to give you the files if it were possible.

0
T. Tsonev
Telerik team
answered on 27 Jan 2016, 01:00 PM
Hello,

The sample looks pretty standard, so we should be able to reproduce these with any exported file.

Try zipping the files together in a single archive. That should be allowed on the forums.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Chad
Top achievements
Rank 1
answered on 27 Jan 2016, 09:11 PM
Attempting attachment again...
0
Chad
Top achievements
Rank 1
answered on 27 Jan 2016, 09:12 PM
I'm sorry, somehow I misread the original error message as saying that .zip were *not* allowed. The .zip file attached to the previous reply contains the two .xlsx files I mentioned earlier. Thanks for the help!
0
T. Tsonev
Telerik team
answered on 01 Feb 2016, 02:30 PM
Hello,

Thanks for taking the trouble to upload the files.

The files are significantly different, which is expected.

It's somewhat strange that the exported file contains no references to "Trebuchet MS" or "Times New Roman".
On the other hand, it does contain references to Calibri. It's not really clear where the substitution took place.

Anyway, I'll have to spend some time with the actual app to see what triggers this behavior.

In the meantime I'm sending you a "stock" file straight from Excel 2013. Does that one trigger the message?

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Chad
Top achievements
Rank 1
answered on 02 Feb 2016, 02:33 PM
The file you attached does have a font warning when opening it in Numbers, but only one warning: "The font Calibri isn't available on OS X. It was replaced with Trebuchet MS."
0
Accepted
T. Tsonev
Telerik team
answered on 05 Feb 2016, 12:18 PM
Hello,

I think we can safely assume any Excel file will trip this warning unless you have the fonts installed.

I finally managed to get a license for Numbers, but it doesn't trip the error on my test machine. See screenshot.
On the other hand, we have a bunch of MS products installed there that might have added the fonts as well.

After scouring around the internet I found that Open XML File Format Converter for Mac is the safest bet to get those fonts on your system without installing MS Office.

I hope this helps.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Chad
Top achievements
Rank 1
answered on 08 Feb 2016, 03:16 PM

I was hoping to find a way to have all the specified fonts be whatever font is common between the platforms, but I can suggest that people install those MS fonts if that solves the problem. It's strange that even if I set every font setting I can find in the Excel exporter to "Times New Roman," I still get font errors, which makes it seems that there is some hidden field or default value in Excel that is still triggering this font warning. You are correct that I do not currently have MS Office installed on my relatively new development machine, which may be why I see these font errors.

Thank you for the help!

Tags
Grid
Asked by
Chad
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Chad
Top achievements
Rank 1
Share this question
or