ASPOSE CELLS : Loading license/fonts directory for once

Hi,

we're using AsposeCells in an Client(windows)/Server(Unix) Java application for producing xlsx files.

Aspose is installed on the server and the Servlet contains static variables.

Currently, AsposeCells license and fonts directory are loaded each time we need to produce an xlsx file.

Is it possible to load license and font directory only once, for the entire user session and all users ?

Regards,

Eric Hamel

Hi Eric,


Please use License.setLicense & CellsHelper.setFontDir methods at the start of your application to set the license & fonts directory (containing TTF files) respectively. Unless the application restarts you do not need to set both again.

Hi Babar,

we had problems by using cellsHelper.setFontDir method.

I found documentation "How to Specify TrueType Fonts Location" you added on june 2014.

In this documentation, the third part is very interesting and i've implemented it in our application.

But it seems that only setting the JVM argument as -DAspose.Cells.FontDirExc=myFontDir is enough to restrict fonts location.

Should i, also, set the specified arguments at the begining of the application, by using the

System.setProperty("Aspose.Cells.FontDirExc", myFontDir);

even if JVM argument is setted ?

Regards,

Eric Hamel

Hi Eric,


Thank you for writing back.

Please note, you should either use the JVM arguments as -DAspose.Cells.FontDirExc=myFontDir or set the folder in your code as System.setProperty(“Aspose.Cells.FontDirExc”, myFontDir). both means exactly the same. First options is for application deployment whereas the second option is for application developers.

Tanks, Babar.

Do you have same kind of method for loading licence ?

Regards

Eric Hamel

Hi Babar,

an other question, sorry :-(

does same method exist for restrict the Aspose.Words use only one font folder ?

regards

E. Hamel

soprasteria:

Tanks, Babar.

Do you have same kind of method for loading licence ?

Regards

Eric Hamel


Hi Eric,

I believe there isn't a similar mechanism to set the license. You need to create an instance of License class and explicitly call its setLicense method with appropriate parameter.
soprasteria:

Hi Babar,

an other question, sorry :-(

does same method exist for restrict the Aspose.Words use only one font folder ?

regards

E. Hamel


It would be appropriate if you can create a new thread in Aspose.Words support forum for related questions. I will check with the concerned team too, and will let you know here if Aspose.Words provides the feature of restricting fonts folder for rendering purposes.

Hi Babar,

that's done : http://www.aspose.com/community/forums/625569/aspose-words-loading-license-fonts-directory-for-once/showthread.aspx#625569

Regards

E. Hamel

Hi Eric,


I have discussed your requirements with the concerned person, and we think that your requirements may not be achieved with current implementation of Aspose.Words for Java. We will look further into this matter to find a workaround and/or log appropriate tickets as feature request, and update you on the relevant thread in Aspose.Words support forum.