I need to parse Excel template to get list of Worksheets in web app on the server. I’m getting exception
java.lang.IllegalArgumentException: Cannot find required font defination[Family:Calibri, Style:0]. Please specify font path.
I need to parse Excel template to get list of Worksheets in web app on the server. I’m getting exception
java.lang.IllegalArgumentException: Cannot find required font defination[Family:Calibri, Style:0]. Please specify font path.
I understand this, but I don’t see the reason to install fonts on web server, when I only need to get list of worksheets
Hi,
Thanks for using Aspose.Cells.
In order to extract the worksheet sheets’ names, Aspose.Cells will have to load the worksheets which require the fonts that are being used in the workbook.
At the moment, Aspose.Cells cannot use any default font which could bypass this exception. So you should install the required fonts on your computer.
I’m not sure why you need to load fonts when you doesn’t need to display anything on the screen. Is it possible that workaroung will be provided in the near future?
Hi,
Thanks for your input.
We have looked into your issue. If you do not want to install fonts on your machine, then you should set the font path to java default font path.
i.e Java/jre6/lib/fonts etc.
You can do it using CellsHelper.setFontDir() method.
Hello, I’ve fixed issues by copying Arial fonts to the /usr/share/fonts/arial dir
Hi,