Respect my work! 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. |
PmWiki /
Creating reports of Jasper typeShortcut tableINFO!
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 systemCreating 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 requirementsIn 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
<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 <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 ProReportsAdding *.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 typeStarting 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. |