Recent Changes - Search:

ProReports

edit SideBar

Respect my work!
If you are using commercially
ProReports please
bay a license:

or

        BTC: 

1MTFbBSKrocPK7G6GKfG8RoTw5N57WnnNa

If you have paid donate send me e-mail with Your data or transaction number to receive an access code to articles with limited access.

Creating reports of Jasper type

INFO!

From version 3.1.29.h.r64 we removed Jasper type of reports in our system.

Considering huge popularity of JasperServer reporting software, in ProReports system was implemented engine that allows to process reports based on *.jrxml files. Below is presented methodology of creating such reports and attaching them to ProReports.

Creating report in iReport system

Creating report of such type starts with working in iReport software, where you have to create report file of type *.jrxml. Process of preparing report in this software reaches beyond ProReports documentation and due to that fact we encourage you to get familiar with iReport documentation on JasperServer website.

Adjusting *.jrxml files to ProReports server requirements

In case when created report has built in sub-reports then in main file *.jrxml you have to change parameter SUBREPORT_DIR in following way:

<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["^^REPORTDIR^^"]]></defaultValueExpression>
</parameter>

In file you should search every other pointers to files *.jrxml/*.jasper and directory before filename change with marker ^^REPORTDIR^^ (look below):

<subreport>
<reportElement x="0" y="0" width="555" height="25"/>
<subreportParameter name="NazwaP">
<subreportParameterExpression><![CDATA[$F{parametr}]]></subreportParameterExpression>
</subreportParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<subreportExpression class="java.lang.String"><![CDATA["^^REPORTDIR^^parameter_value.jasper"]]></subreportExpression>
</subreport>

If you are using other, external files (e.g. font files or graphic files), then you need to search in files *.jrxml for every occurrence and directory before filename change to marker ^^REPORTDIR^^ (example below):

<font fontName="Arial" size="10" isBold="true" pdfFontName="^^REPORTDIR^^arial.ttf" pdfEncoding="Cp1250" isPdfEmbedded="true"/>

Files prepared in that way can be attached to ProReports system.

Adding *.jrxml files to ProReports

Adding *.jrxml files to ProReports system is done the same way as other file types (here you can read more on this).

Adding form definition for JASPER report type

Starting parameters form for report type JASPER is defined in the same way as any other form (here you can know more about it). You have to remember to set form fieldnames according to field parameters name defined in *.jrxml file.

This page may have a more recent version on pmwiki.org: PmWiki:RepJasper, and a talk page: PmWiki:RepJasper-Talk.

Edit - History - Print - Recent Changes - Search
Page last modified on February 08, 2025, at 09:00 AM EST