Jump to content
We've recently updated our Privacy Statement, available here ×

deesel

Members
  • Posts

    8
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by deesel

  1. Hi I have a similar problem... I am using iReport 1.2.7.In my web application,I get this errror java.lang.UnsupportedClassVersionError: XMTL_Report_1204131733656_970806 (Unsupported major.minor version 49.0) when I use JDK 1.4...but works fine with JDK1.5. I have included the tools.jar to the JDK ref library in my application. But the error still exist. Rgds Deepti
  2. If you are not able to remove the blank space even after the 'Remove blank' property is selected, then here is the soluiton i found from the forum: this 'Remove blank' property works only if the corresponding field is the only field on that line space.For example:If you embed this field into another rectangle box or static text,it will not work. Hope it helps!
  3. I did try that...but it is not working that way as well...
  4. Hi I am trying to generate a Master file where the subreport chunk has to be added in a recursive manner.Rather I end up with a master file with the subreport being displyed as whole. I am attaching the files : XML Datasource file(Trial.xml) <root> <object> <repeating_attr index="1"> <address1>11</address1> <address2>11111ee</address2> </repeating_attr> <repeating_attr index="2"> <address1>22</address1> <address2>22222</address2> </repeating_attr> <repeating_attr index="3"> <address1>33</address1> <address2>33333</address2> </repeating_attr> </object> </root> Master file(Trial_Master.jrxml) <?xml version="1.0" encoding="UTF-8" ?> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="Trial_Master" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="0" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <field name="repeating_index" class="java.lang.String"> <fieldDescription><![CDATA[attribute::index]]></fieldDescription> </field> <group name="repeating" > <groupExpression><![CDATA[$F{repeating_index}]]></groupExpression> <groupHeader> <band height="0" isSplitAllowed="true" > </band> </groupHeader> <groupFooter> <band height="0" isSplitAllowed="true" > </band> </groupFooter> </group> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="0" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="0" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="0" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="500" isSplitAllowed="true" > <rectangle> <reportElement x="49" y="109" width="278" height="112" key="rectangle-1"/> <graphicElement stretchType="NoStretch"/> </rectangle> <staticText> <reportElement x="70" y="121" width="55" height="13" key="staticText-2"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font/> </textElement> <text><![CDATA[To]]></text> </staticText> <staticText> <reportElement x="144" y="7" width="195" height="23" key="staticText-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font pdfFontName="Helvetica-BoldOblique" size="14" isBold="true" isItalic="true" isUnderline="true"/> </textElement> <text><![CDATA[Reapeat Block]]></text> </staticText> <staticText> <reportElement x="49" y="74" width="95" height="24" key="staticText-4"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font/> </textElement> <text><![CDATA[Repeating Index]]></text> </staticText> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="152" y="74" width="44" height="21" key="textField-1"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{repeating_index}]]></textFieldExpression> </textField> <subreport isUsingCache="true"> <reportElement x="71" y="162" width="76" height="16" key="subreport-1"/> <subreportParameter name="INDEX_SUB"> <subreportParameterExpression><![CDATA[$F{repeating_index}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression><![CDATA[$P{REPORT_DATA_SOURCE}]]></dataSourceExpression> <subreportExpression class="java.lang.String"><![CDATA["C://Program Files//JasperSoft//iReport2.0.4//compiled//Trial_subreport.jasper"]]></subreportExpression> </subreport> </band> </detail> <columnFooter> <band height="0" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="0" isSplitAllowed="true" > </band> </pageFooter> <summary> <band height="0" isSplitAllowed="true" > </band> </summary> </jasperReport> Detail file(Trial_subreport.jrxml) <?xml version="1.0" encoding="UTF-8" ?> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="Trial_subreport" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="0" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <queryString language="xPath"><![CDATA[/root/object/repeating_attr/@index]]></queryString> <field name="add1" class="java.lang.String"> <fieldDescription><![CDATA[child::address1]]></fieldDescription> </field> <field name="add2" class="java.lang.String"> <fieldDescription><![CDATA[child::address2]]></fieldDescription> </field> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="0" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="0" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="0" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="500" isSplitAllowed="true" > <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="0" y="0" width="112" height="29" key="textField-1"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{add1}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="0" y="29" width="112" height="29" key="textField-2"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{add2}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="0" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="0" isSplitAllowed="true" > </band> </pageFooter> <summary> <band height="0" isSplitAllowed="true" > </band> </summary> </jasperReport> Please help me out....:ohmy: Post edited by: deesel, at: 2008/02/18 15:21
  5. Hi My xml datasource looks like this: <root> <repeating index="0"> <address>00<address> </repeating> <repeating index="1"> <address>11<address> </repeating> </root> I have a subreport displaying the address field in 2 different pages. I want this subreport to be inserted to a Master report as represented below: Page 1 of Master report: Name:Name00 Age:age00 Address:00(inserted using subreport) Page 2 of Master report: Name:Name00 Age:age00 Address:11(inserted using subreport) Currently my Master report looks like: Page 1 of Master report: Name:Name00 Age:age00 Address:11(inserted using subreport)
  6. Hi This is the link to the addressbook example. http://ireport.sourceforge.net/cap7.html#7.2 Please let me know if the class file specified here should be used to generate the report just like the example. I am thriving hard to get a report through xml data source.:huh: Please help me out.
  7. hello... if u can help me..where must the xpath be specified??
  8. Hi I am new to iReport..Can anyone let me know if the follwing is correct when using xml data source. My xml looks like this: <addressbook> <category name="home"> <person id="1"> <LASTNAME>Davolio</LASTNAME> <FIRSTNAME>Nancy</FIRSTNAME> </person> </category> </addressbook> I have added a field 'category' with description '/addressbook/category@name' I have added the field in my .jrxml When I try to compile with the ative datasource as the xml, the report is empty. Please help.
×
×
  • Create New...