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

naniivs

Members
  • Posts

    9
  • 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 naniivs

  1. Thanks for ur suggession but can u clearly tel me. My problem is to get 2 copies of the same page in a single report. I used each page as subreport(i.e. 2 subreports) but all my detail content of the 1st page is printed ok but the detail content of the second page is not been printed. I am passing JRCollectionDataSource as parameters to each subreports. And i think this datasource is reaching the end after the first report. and we need to reset the datasource. I dont know if i am right.Can anyone please help me regarding this senario. Thanks in advance
  2. I have to print same report content two times in the same report.can anyone help me how to do it?
  3. Hi, I have a 6 subreports in my main report . I want first 4 of them to be displayed on different pages and rest 2 to be displayed on a single page . Can anyone please help me regarding their issue. Its very urgent. Thank you, nani
  4. I have 2 simple reports. MasterReport.jrxml and subreport.jrxml master report <?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="MainReport" 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="2" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <parameter name="Title" isForPrompting="true" class="java.lang.String"/> <parameter name="name" isForPrompting="true" class="java.lang.String"/> <parameter name="place" isForPrompting="true" class="java.lang.String"/> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="43" isSplitAllowed="true" > <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="15" y="8" width="100" height="18" key="textField"/> <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[$P{Title}]]></textFieldExpression> </textField> </band> </title> <pageHeader> <band height="0" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="0" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="0" isSplitAllowed="true" > </band> </detail> <columnFooter> <band height="0" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="0" isSplitAllowed="true" > </band> </pageFooter> <summary> <band height="69" isSplitAllowed="true" > <subreport isUsingCache="true"> <reportElement x="132" y="14" width="233" height="33" key="subreport-1"/> <subreportParameter name="name"> <subreportParameterExpression><![CDATA[$P{name}]]></subreportParameterExpression> </subreportParameter> <subreportParameter name="place"> <subreportParameterExpression><![CDATA[$P{place}]]></subreportParameterExpression> </subreportParameter> <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression> <subreportExpression class="java.lang.String"><![CDATA["subreport.jasper"]]></subreportExpression> </subreport> </band> </summary> </jasperReport> subreport <?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="subreport" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="255" pageHeight="842" columnWidth="195" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="2" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <parameter name="name" isForPrompting="true" class="java.lang.String"/> <parameter name="place" isForPrompting="true" class="java.lang.String"/> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="50" isSplitAllowed="true" > <staticText> <reportElement x="1" y="0" width="72" height="21" key="staticText-1"/> <box topBorder="1Point" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font pdfFontName="Helvetica-Bold" size="12" isBold="true"/> </textElement> <text><![CDATA[Name]]></text> </staticText> <staticText> <reportElement x="73" y="0" width="121" height="21" key="staticText-2"/> <box topBorder="1Point" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font pdfFontName="Helvetica-Bold" size="12" isBold="true"/> </textElement> <text><![CDATA[Place]]></text> </staticText> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="1" y="20" width="72" height="21" key="textField-1"/> <box topBorder="1Point" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{name}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="73" y="20" width="121" height="21" key="textField-2"/> <box topBorder="1Point" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{place}]]></textFieldExpression> </textField> </band> </title> <pageHeader> <band height="0" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="0" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="0" isSplitAllowed="true" > </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 why i am unable to see my sub report. tnk u, nani [file name=MainReport.jrxml size=3092]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/MainReport.jrxml[/file]
  5. Hi, I have a master report. I am sending parameters to subreports. But while running my subreprts are not shown . I am using java bean set datasource in the master report. I am new to ireports .please help me regarding this . Thank you, Nani
  6. Hi All, Can anyone help me how can i pass parameters to subreports in JavaBean set DataSource. Do i need to use any connection expression? if so please let me know. Tnk u, Nani
  7. Hi, I got the result by passing HIBERNATE_SESSION parameter to my sub report. Tnks all, Bye, Nani
  8. Hi , I have a master report and subreport both using same table in hibernate. Subreport is shown well when i run it individually. But while running master report my sub report is not shown.Only master contents r shown Can anyone help me regarding do i need to pass parameters to my subreport so that it is shown. thank you, Nani
  9. Hi , I have same problem as u posted. I have master report(disForm) and subreport(drugAll) both using same table using hibernate Subreports(drugAll) is running well individually. when i run the master report(disForm) Master report itself is executing when i run it. My subreport is not shown. Can u please help me how to configure them , and parameters to be passed? Bye, Nani
×
×
  • Create New...