grototo Posted January 10, 2019 Share Posted January 10, 2019 Hi folks,first of all, happy new year ;)I use a stylesProject.jrtx in my Java project.The jrtx file is available at ths location in my Java project : /src/main/webapp/WEB-INF/editions/rapports/communI also have a parameter ($P) called commun_subreport_dir pointing on this folder in my project, and it works fine when dealing with a subreport placed in it.Compiling jrxml files in my project also works fine.But when executing the rendering of the report through my java project, I get in my Eclipse console :net.sf.jasperreports.engine.JRException: Byte data not found at: ./stylesProject.jrtx.[/code] Here is the extract of my jrxml file, defining the jrtx using a parameter :<?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.5.1.final using JasperReports Library version 6.5.1 --><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="entetehuissierredevable" pageWidth="340" pageHeight="270" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="340" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="1938418a-4001-4d0c-9ac8-cfed31dd6149"> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> <property name="com.jaspersoft.studio.unit." value="pixel"/> <property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/> <property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/> <property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/> <property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/> <template>$P{COMMUN_SUBREPORT_DIR} + "stylesProject.jrtx"</template> <parameter name="COMMUN_SUBREPORT_DIR" class="java.lang.String" isForPrompting="false"> <defaultValueExpression><![CDATA["./"]]></defaultValueExpression> </parameter>[/code]My question is : how do I have to reference my jrtx style? I can't user Jasper's repo because we don't use it at all.Best regards,Thomas, from France Link to comment Share on other sites More sharing options...
Anthony - Account Executiv Posted May 22, 2020 Share Posted May 22, 2020 Bonjour Thomas,Etes-vous sur une édition communautaire ou commerciale?Si vous êtes sur une édition commerciale, je vous invite à ouvrir une incidence sur support.tibco.comEn restant à disposition.Anthony Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now