Archi Forum

Archi => Archi Development => Topic started by: hsahraou on June 02, 2021, 09:45:27 AM

Title: How to custom the HTML report generation
Post by: hsahraou on June 02, 2021, 09:45:27 AM
Hello everyone,
I'm doing an internship using Archi. I have a question :

Need: When the user clicks on File => Report => HTML, we want to obtain a report in HTML format that meets a predefined graphic charter

Question: How to meet this need? Is it possible ?

P.S : It seems it exists also jasper report. But how may I create a jrxml template ?

Thanks in advance,
Title: Re: How to custom the HTML report generation
Post by: Jean-Baptiste Sarrodie on June 02, 2021, 10:45:36 AM
Hi,

For JasperReport you can easilly change the cover and header by adding simple properties to the model. See p. 95 of the User Guide (https://www.archimatetool.com/downloads/Archi%20User%20Guide.pdf). If you want to do more customization, then you'll find answers here (https://github.com/archimatetool/archi/wiki/How-to-create-your-own-report-for-Archi), but I personnaly wouldn't try to go this way as it has proven to be very challenging for most people.

For the HTML report, there is no official way to customize if, but it is internally based on a templating system and thus is quite easy to customize (search for "stringtemplate" on the forum and you should find plenty of information). If you try to do this, you'll obviously have to distribute your own version of Archi to all users in charge of exporting models. The template has recently been updated and will change a bit in the next version of Archi, so it might make sense to get the latest version on GitHub.

Regards,

JB