I am trying to build a code in B4J to export and view reports built in Next Reports.
So far, I have succeeded in exporting the text contained in the reports to RTF, PDF, HTML, EXCEL format. However, if the report contains images and the exported format is other than HTML format, no images are displayed (a "file not loaded" indication appears in the exported report file).
Here is what Next Reports documentation notes on this issue:
"The code takes care to copy those images to the folder where exported
report is generated (current directory). For HTML that is enough to view images.
For other types like PDF, RTF, DOCX, EXCEL, you will have to add the folder where you copy images to the CLASSPATH (because report images are loaded from classpath)."
So, it seems that i must add to the CLASSPATH the folder where the images are copied..
Obviously, the folder must be described in a relative way, in order to be independent of actual folder location for various machines running the program.
How can I do that in B4J?
So far, I have succeeded in exporting the text contained in the reports to RTF, PDF, HTML, EXCEL format. However, if the report contains images and the exported format is other than HTML format, no images are displayed (a "file not loaded" indication appears in the exported report file).
Here is what Next Reports documentation notes on this issue:
"The code takes care to copy those images to the folder where exported
report is generated (current directory). For HTML that is enough to view images.
For other types like PDF, RTF, DOCX, EXCEL, you will have to add the folder where you copy images to the CLASSPATH (because report images are loaded from classpath)."
So, it seems that i must add to the CLASSPATH the folder where the images are copied..
Obviously, the folder must be described in a relative way, in order to be independent of actual folder location for various machines running the program.
How can I do that in B4J?