Retrieve a file client resources [message #1355088] |
Wed, 14 May 2014 15:14 |
|
Hi all,
I have the following question/need:
I would need to specify in my code the location of a file in resorces of my package "client" (as you can see in the picture below)
This file is a Excel file that I use as template to generate a report in Excel with jXLS library. The used code is the following:
Map beans = new HashMap();
beans.put("list", list);
XLSTransformer transformer = new XLSTransformer();
transformer.transformXLS(templateFileName, beans, destFileName);
The user can define the destination using a filechooser [destFileName]; instead the template is always the same and I thinked to put this into the resources folder of the client package, but I cannot retrieve it.
Is this possible? How?
Thanks in advance for any suggestion
|
|
|
|
Re: Retrieve a file client resources [message #1356884 is a reply to message #1355648] |
Thu, 15 May 2014 09:06 |
|
Hi Matthias,
I have a doubt regarding the first part of your suggestion.
I don't understand exactly what you mean with
Quote:Let's assume that you save your Excel template file in the client plugin under resources/templates/MyTemplate.xlsx
Please, can you explain me better?
Thanks in advance for your explanation
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03506 seconds