Jasper Subreport Not Displayed -
i using jaspersoft studio 6.4 create jasper report. have followed tutorial on youtube on how create subreport. unfortunately subreport not displayed when ran master report. 1 pointed me hint why subreport not displayed? thanks..
<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="samplereport" pagewidth="842" pageheight="595" orientation="landscape" columnwidth="802" leftmargin="20" rightmargin="20" topmargin="20" bottommargin="20" uuid="b3d0aab2-bff8-4aaa-a77c-b315b381c78b"> <property name="com.jaspersoft.studio.data.sql.tables" value=""/> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="new data adapter (3)"/> <parameter name="id" class="java.lang.integer"> <defaultvalueexpression><![cdata[1]]></defaultvalueexpression> </parameter> <querystring language="sql"> <![cdata[select * dbo."jasperreporttitle" id = $p{id}]]> </querystring> <field name="reporttitle1" class="java.lang.string"/> <field name="reporttitle2" class="java.lang.string"/> <field name="reporttitle3" class="java.lang.string"/> <field name="reporttitle4" class="java.lang.string"/> <field name="reporttitle5" class="java.lang.string"/> <field name="reporttitle6" class="java.lang.string"/> <field name="id" class="java.lang.integer"/>
here subreport properties :
<subreport> <reportelement x="1" y="10" width="799" height="60" uuid="ac703cef-cd42-4a8a-aea6-2cb039bb8c95"/> <subreportparameter name="id"> <subreportparameterexpression><![cdata[$p{id}]]></subreportparameterexpression> </subreportparameter> <connectionexpression><![cdata[$p{report_connection}]]></connectionexpression> <subreportexpression><![cdata["subreport.jasper"]]></subreportexpression> </subreport>
here is part of source in subreport :
<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="subreport" pagewidth="842" pageheight="595" orientation="landscape" columnwidth="802" leftmargin="20" rightmargin="20" topmargin="20" bottommargin="20" uuid="135c9e7a-a78a-41f1-ba7f-9b0560e9ddd0"> <property name="com.jaspersoft.studio.data.sql.tables" value=""/> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="new data adapter (3)"/> <parameter name="id" class="java.lang.integer"/> <querystring language="sql"> <![cdata[select * dbo."jasperreportdata" id = $p{id}]]> </querystring> <field name="field1" class="java.lang.string"/> <field name="field2" class="java.lang.string"/> <field name="field3" class="java.lang.string"/> <field name="field4" class="java.lang.string"/> <field name="field5" class="java.lang.string"/> <field name="field6" class="java.lang.string"/> <field name="field7" class="java.lang.string"/> <field name="field8" class="java.lang.string"/> <field name="id" class="java.lang.integer"/>
i solved issue updating jre. followed step in link https://stackoverflow.com/questions/34613580/jaspersoft-studio-6-2-build-path-warning
Comments
Post a Comment