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

efefef

Members
  • Posts

    9
  • Joined

  • Last visited

efefef's Achievements

Apprentice

Apprentice (3/14)

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

Recent Badges

0

Reputation

  1. Thank you aimee for the response. I was able to get an svg into an ireport locally, that is, if I hard codes the file path and preview. Via the web (tomcat) I get an error (below). I receive this error without the custom class also (just using the JRRenderable and a file). Apparently I am missing something from my classpath. Next I will have to figure out how to scale the svg. It appears double the real size. The code I used is here: http://community.jaspersoft.com/questions/520979/embedding-flash-and-svg-jasper-report Caused by: java.lang.NoClassDefFoundError: org/apache/batik/bridge/UserAgent at pdf_1359697806580_374154.evaluate(pdf_1359697806580_374154:530) at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:190) ... 33 more Caused by: java.lang.ClassNotFoundException: org.apache.batik.bridge.UserAgent at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
  2. Hello, I have an svg (as a string) in memory. I would like to embed this image into a pdf which I am creating using ireports. Is this possible. I have tried the net.sf.jasperreports.engine.JRRenderable class with no results. Thanks
  3. oh I am using 3.71 I tried $P{REPORT_DATA_SOURCE}.moveFirst() however I receive an error stating the method does not exist
  4. Hello, I have inserted a sub-report into the detail section of my master report. There are presently no other items in the master report. I selected $P{REPORT_DATA_SOURCE} as the data source. The sub-report renders (pdf) however the data starts with record 2 of 3 and the next page is 3 of 3 and then there is an blank page. When the sub report is set as the target for the data all 3 reords render as expected 1 of 3, 2 of 3 and 3 of 3. No blank pages. The master report appears to have incremented the data source before rendering the sub-report. Am I missing a setting? Thank in advance.
  5. Hello, Is there a way to create a dashed line between secions.There is only a solid line in the pallete. Thanks Using iReports 3.7
  6. I am receiving sytax errors when trying to compile using this formula. Can someone tell me the correct syntax. Thanks!! ( $V{PAGE_COUNT}.intValue() != $V{COLUMN_COUNT}.intValue() ? Boolean.TRUE:Boolean.FALSE ) ( $V{COLUMN_COUNT}.intValue() % 2 != 0 ? Boolean.TRUE : Boolean.FALSE )
  7. using: I am using iReports 3.7.5 datasource: xml Hello, I am new using iReports - and i am also stuck on the simplest of examples. I have defined an xml datasource and an xpath expresssion. in the Edit Query panel I can see the xml leafs on the right and i have selected the leafs as "Add Node As Field". These show up in the next pane as field name, field type and description. In all cases the description is the same as the field name and there are no options to edit in this panel. When i click refresh preview data the panel; indeicates it is refreshing and then shows 0 records read. The xml datasource has 5 records - which are visible in the ttop right of the panel. I saved the datasource and entered the gui. From within the gui I added fields of the same name from the field section (report Inspector) and also from the xml datasource section.. in both cases the report shows no data when i click the preview button. I suspect i am missing something simple. Thanks Code:<?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="report5" language="groovy" pageWidth="216" pageHeight="108" whenNoDataType="BlankPage" columnWidth="216" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <subDataset name="data5"> <queryString language="xPath"> <![CDATA[/job]]> </queryString> <field name="customerName" class="java.lang.String"> <fieldDescription><![CDATA[customerName]]></fieldDescription> </field> <field name="jobNumber" class="java.lang.String"> <fieldDescription><![CDATA[jobNumber]]></fieldDescription> </field> <field name="jobNumberCount" class="java.lang.String"> <fieldDescription><![CDATA[jobNumberCount]]></fieldDescription> </field> <field name="jobName" class="java.lang.String"> <fieldDescription><![CDATA[jobName]]></fieldDescription> </field> <field name="productFolderName" class="java.lang.String"> <fieldDescription><![CDATA[productFolderName]]></fieldDescription> </field> <field name="productQtyBreakdown" class="java.lang.String"> <fieldDescription><![CDATA[productQtyBreakdown]]></fieldDescription> </field> </subDataset> <field name="customerName" class="java.lang.String"> <fieldDescription><![CDATA[/job/label+customerName]]></fieldDescription> </field> <field name="jobNumber" class="java.lang.String"/> <field name="jobNumberCount" class="java.lang.String"/> <field name="jobName" class="java.lang.String"/> <field name="productFolderName" class="java.lang.String"/> <field name="productQtyBreakdown" class="java.lang.String"/> <background> <band splitType="Stretch"/> </background> <detail> <band height="88"> <textField> <reportElement x="79" y="43" width="100" height="20"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{jobNumber}]]></textFieldExpression> </textField> <textField> <reportElement x="36" y="29" width="100" height="20"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{customerName}]]></textFieldExpression> </textField> </band> </detail> <pageFooter> <band height="20" splitType="Stretch"> <textField> <reportElement x="84" y="0" width="100" height="20"/> <textElement/> <textFieldExpression class="java.lang.Integer"><![CDATA["label "+$V{PAGE_NUMBER}+" of "]]></textFieldExpression> </textField> <textField> <reportElement x="184" y="0" width="32" height="20"/> <textElement/> <textFieldExpression class="java.lang.Integer"><![CDATA[$V{PAGE_COUNT}]]></textFieldExpression> </textField> </band> </pageFooter></jasperReport>
  8. using: I am using iReports 3.7.5 datasource: xml Hello, I am new using iReports - and i am also stuck on the simplest of examples. I have defined an xml datasource and an xpath expresssion. in the Edit Query panel I can see the xml leafs on the right and i have selected the leafs as "Add Node As Field". These show up in the next pane as field name, field type and description. In all cases the description is the same as the field name and there are no options to edit in this panel. When i click refresh preview data the panel; indeicates it is refreshing and then shows 0 records read. The xml datasource has 5 records - which are visible in the ttop right of the panel. I saved the datasource and entered the gui. From within the gui I added fields of the same name from the field section (report Inspector) and also from the xml datasource section.. in both cases the report shows no data when i click the preview button. I suspect i am missing something simple. Thanks Code:<?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="report5" language="groovy" pageWidth="216" pageHeight="108" whenNoDataType="BlankPage" columnWidth="216" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <subDataset name="data5"> <queryString language="xPath"> <![CDATA[/job]]> </queryString> <field name="customerName" class="java.lang.String"> <fieldDescription><![CDATA[customerName]]></fieldDescription> </field> <field name="jobNumber" class="java.lang.String"> <fieldDescription><![CDATA[jobNumber]]></fieldDescription> </field> <field name="jobNumberCount" class="java.lang.String"> <fieldDescription><![CDATA[jobNumberCount]]></fieldDescription> </field> <field name="jobName" class="java.lang.String"> <fieldDescription><![CDATA[jobName]]></fieldDescription> </field> <field name="productFolderName" class="java.lang.String"> <fieldDescription><![CDATA[productFolderName]]></fieldDescription> </field> <field name="productQtyBreakdown" class="java.lang.String"> <fieldDescription><![CDATA[productQtyBreakdown]]></fieldDescription> </field> </subDataset> <field name="customerName" class="java.lang.String"> <fieldDescription><![CDATA[/job/label+customerName]]></fieldDescription> </field> <field name="jobNumber" class="java.lang.String"/> <field name="jobNumberCount" class="java.lang.String"/> <field name="jobName" class="java.lang.String"/> <field name="productFolderName" class="java.lang.String"/> <field name="productQtyBreakdown" class="java.lang.String"/> <background> <band splitType="Stretch"/> </background> <detail> <band height="88"> <textField> <reportElement x="79" y="43" width="100" height="20"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{jobNumber}]]></textFieldExpression> </textField> <textField> <reportElement x="36" y="29" width="100" height="20"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{customerName}]]></textFieldExpression> </textField> </band> </detail> <pageFooter> <band height="20" splitType="Stretch"> <textField> <reportElement x="84" y="0" width="100" height="20"/> <textElement/> <textFieldExpression class="java.lang.Integer"><![CDATA["label "+$V{PAGE_NUMBER}+" of "]]></textFieldExpression> </textField> <textField> <reportElement x="184" y="0" width="32" height="20"/> <textElement/> <textFieldExpression class="java.lang.Integer"><![CDATA[$V{PAGE_COUNT}]]></textFieldExpression> </textField> </band> </pageFooter></jasperReport>
×
×
  • Create New...