JIRISReport
This is a tool for create and execute JasperReports on InterSystems IRIS.
Description
The JIRISReport allows you:
- Design reports using JasperReports Studio
- Run the report files (jrxml files) and get PDF, Word, Excel or HTML reports
Prerequisites
Installation with Docker
Clone/git pull the repo into any local directory
$ git clone https://github.com/yurimarx/jirisreport.git
Open the terminal in this directory and call the command to build and run InterSystems IRIS in container:
Note: Users running containers on a Linux CLI, should use “docker compose” instead of “docker-compose”
See Install the Compose plugin
$ docker-compose up -d
Installation with ZPM
USER> zpm install jirisreport
If your OS host is Linux, install ttf fonts:
sudo echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
apt-get update && \
apt-get install ttf-mscorefonts-installer -y && \
apt-get install fontconfig -y
sudo fc-cache -v -f /usr/share/fonts
Tutorial how to use this library
https://community.intersystems.com/post/part-i-jasperreports-open-source-drag-and-drop-reports-iris
Test procedures
- Execute ##class(dc.jirisreport.SampleReportGenerator).CreateSampleReport() on IRISAPP namespace.
- See the generated file on /tmp/outsample.pdf
- To filtered persons report
- Execute ##class(dc.jirisreport.SampleReportGenerator).CreateFilteredSampleReport() on IRISAPP namespace (if you want change parameters values inside the method).
- See the generated file on /tmp/out.pdf