Jump to content

jigar.prajapati

Members
  • Posts

    5
  • Joined

  • Last visited

jigar.prajapati's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. You should try Ignore Pagination properties in Main Report as well as in subreport isIgnorePagination="true" is propertie for main report will add all subreport in main
  2. Got Solution after Many Effort: I use same datasource for Chart and Table and Create collection parameter for jav collection with same name of java colection which derived in parameter by java code in first where i user datasource firsttime i user datasource expression as "$P{collectionParameter}.Clonable()" and For Chart i use Dataset Expression as "$P{collectionParameter}". and i get Chart and table both using same dataSet and same DataSource..
  3. Currently i m new at ireport. i want to create chart/graph using Java.util.collection in which pass through java code. Previously i create table with data using collection but in chart i cant find any reference. Can u please provide me sugegstion to create chart using collection . Or how can i use table dataset to create chart/graph ?
  4. i want to use Collcetion subDataset of table for Linechart. currently i want to create linechart using java.util.collection i m new in user i report. Here Is the step which i use to create report Create simple report. after that i cretae parameter to use java collection then i cretate one table to show data in Table text mannner. but now i want to create Line chart with using table dataset. i created Line chart to show table in Chart fomation . i dont know how to show up i tried to create report and later i proide subdataset of table and provide category series value experssion but my report doesnt show any thing i m not sure the field i setteled is right aor wrong. if anyone has idea to create any chart with using java collection please bring me out from this problem.i stuck badly Thanks jigar Prajapti
  5. Currently i m creating report with table. i m new at i-report. I create table in whihc i get data from collection(Java.util)a and later i partition it in as i required.. i want to use that table dataset field or dataset variable to pass main report. i have no of columns each column have one unique vaule in field. i want to get that variable vaule or filed value in main report here is the code which i try: <?xml version="1.0" encoding="UTF-8"?> <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="TestingImage" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isIgnorePagination="true" uuid="5470e3fc-1c9c-4841-8814-e3a935fa6684"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="288"/> <style name="table"> <box> <pen lineWidth="1.0" lineColor="#000000"/> </box> </style> <style name="table_TH" mode="Opaque" backcolor="#F0F8FF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="table_CH" mode="Opaque" backcolor="#BFE1FF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="table_TD" mode="Opaque" backcolor="#FFFFFF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="Table_TH" mode="Opaque" backcolor="#F0F8FF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> <topPen lineWidth="0.5" lineColor="#000000"/> <leftPen lineWidth="0.5" lineColor="#000000"/> <bottomPen lineWidth="0.5" lineColor="#000000"/> <rightPen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="Table_CH" mode="Opaque" backcolor="#BFE1FF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> <topPen lineWidth="0.5" lineColor="#000000"/> <leftPen lineWidth="0.5" lineColor="#000000"/> <bottomPen lineWidth="0.5" lineColor="#000000"/> <rightPen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="Table_TD" mode="Opaque" backcolor="#FFFFFF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> <topPen lineWidth="0.5" lineColor="#000000"/> <leftPen lineWidth="0.5" lineColor="#000000"/> <bottomPen lineWidth="0.5" lineColor="#000000"/> <rightPen lineWidth="0.5" lineColor="#000000"/> </box> </style> <subDataset name="ImageDemoDataset" uuid="47414685-b792-4a30-9b14-fc32127ad3cc"> <queryString> <![CDATA[]]> </queryString> <field name="firstname" class="java.lang.String"/> <field name="lastname" class="java.lang.String"/> <field name="email" class="java.lang.String"/> <field name="phone_number" class="java.lang.String"/> <field name="picture" class="java.lang.String"/> <variable name="imagePath" class="java.lang.String" resetType="None"> <variableExpression><![CDATA[$F{picture}]]></variableExpression> </variable> </subDataset> <parameter name="ImageDataSource" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource"/> <variable name="varImage" class="java.lang.String" resetType="None"/> <background> <band splitType="Stretch"/> </background> <title> <band height="79" splitType="Stretch"/> </title> <pageHeader> <band height="35" splitType="Stretch"/> </pageHeader> <columnHeader> <band height="61" splitType="Stretch"/> </columnHeader> <detail> <band height="364" splitType="Stretch"> <componentElement> <reportElement x="18" y="0" width="474" height="216" uuid="771aa5d8-1470-4fd9-b062-a913b6014f19"/> <jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" whenNoDataType="AllSectionsNoDetail"> <datasetRun subDataset="ImageDemoDataset" uuid="78f8e35f-b65c-44fb-9a82-71352f17b0f7"> <dataSourceExpression><![CDATA[$P{ImageDataSource}]]></dataSourceExpression> <returnValue fromVariable="imagePath" toVariable="varImage"/> </datasetRun> <jr:column width="70" uuid="6aa96500-79ab-4b8b-aa5f-0c9dbc22638f"> <jr:detailCell height="30" rowSpan="1"> <textField> <reportElement x="0" y="0" width="70" height="30" uuid="9528bbd1-627c-424c-a3f0-872f92799c94"/> <textFieldExpression><![CDATA[$F{firstname}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="90" uuid="ba88fb55-d423-4d1e-99a1-b81c44f6e65a"> <jr:detailCell height="30" rowSpan="1"> <textField> <reportElement x="0" y="0" width="90" height="30" uuid="5c85fd56-54ba-4d22-a3e4-adcdbbbc2b4f"/> <textFieldExpression><![CDATA[$F{lastname} + ""+$V{imagePath}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="100" uuid="29524685-b68a-4906-be22-50b0acacba7d"> <jr:detailCell height="30" rowSpan="1"> <textField> <reportElement x="0" y="0" width="100" height="30" uuid="9dacce68-21ca-4bcc-b9cb-bad1b3661611"/> <textFieldExpression><![CDATA[$F{email}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="94" uuid="4bb9635f-4173-4c5b-95ce-5a12a2332ea1"> <jr:detailCell height="30" rowSpan="1"> <textField> <reportElement x="0" y="0" width="94" height="30" uuid="8c6c58b1-d3fd-4fad-995a-caaaea6afe8e"/> <textFieldExpression><![CDATA[$F{phone_number}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="100" uuid="b500de9f-6abf-41b8-9e5d-d408b94d32ce"> <jr:detailCell height="30" rowSpan="1"> <textField> <reportElement x="0" y="0" width="100" height="30" uuid="0e6a1e56-974f-41a3-af08-0cf5b832b573"/> <textFieldExpression><![CDATA[$F{picture}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> </jr:table> </componentElement> <image scaleImage="FillFrame" hAlign="Center" vAlign="Middle"> <reportElement x="48" y="266" width="100" height="98" uuid="290e1eb9-3a18-4a65-93d4-d155b98ce964"> <printWhenExpression><![CDATA[!$V{varImage}.equalsIgnoreCase("null")]]></printWhenExpression> </reportElement> <imageExpression><![CDATA["C:\Users\jigpra\Pictures\"+$V{varImage}]]></imageExpression> </image> <staticText> <reportElement x="48" y="231" width="100" height="20" uuid="32fd136d-d7c4-4256-be6c-e9ad7d5f7592"/> <textElement> <font size="12"/> </textElement> <text><![CDATA[$V{varImage}]]></text> </staticText> </band> </detail> <columnFooter> <band height="45" splitType="Stretch"/> </columnFooter> <pageFooter> <band height="54" splitType="Stretch"/> </pageFooter> <summary> <band height="42" splitType="Stretch"/> </summary> </jasperReport> waiting for your response thank you.
×
×
  • Create New...