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

josef.oberstadt

Members
  • Posts

    7
  • Joined

  • Last visited

josef.oberstadt'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. When I change report language to java the following error displayed, with groowy there is no error, Please help, I do not understand why the language groovy java.lang string is not a problem, but with java what do I have to do so that the compiler finds the class java.lang.string here the compile exeption: Compiling to file... C:UsersJuppDocumentsNetBeansProjectsVTDESKTOPsrcmainresourcesREPORTSBlocks.jasper Errors compiling C:UsersJuppDocumentsNetBeansProjectsVTDESKTOPsrcmainresourcesREPORTSBlocks.jasper! Compilation exceptions: com.jaspersoft.ireport.designer.compiler.ErrorsCollector@4bd0ffcc net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files /* ^ 1 errors at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:204) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:512) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) Compilation running time: 2.052! and here mir jrxml <?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="null" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="4f48fe3f-c880-4ec9-9108-d900859df9cf"> <property name="ireport.zoom" value="1.5"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <style name="Heading 1"/> <queryString> <![CDATA[]]> </queryString> <field name="book" class="java.lang.String"> <fieldDescription><![CDATA[book]]></fieldDescription> </field> <field name="isbn" class="java.lang.String"> <fieldDescription><![CDATA[isbn]]></fieldDescription> </field> <field name="language" class="java.lang.String"> <fieldDescription><![CDATA[language]]></fieldDescription> </field> <field name="lesson" class="java.lang.String"> <fieldDescription><![CDATA[lesson]]></fieldDescription> </field> <sortField name="isbn"/> <sortField name="lesson"/> <background> <band splitType="Stretch"/> </background> <title> <band height="31" splitType="Stretch"> <staticText> <reportElement x="10" y="0" width="300" height="28" uuid="a72cc648-317c-4452-982d-2610c0e04a2a"/> <textElement> <font fontName="Arial Black" size="16"/> </textElement> <text><![CDATA[blocklist for Language]]></text> </staticText> <line> <reportElement x="10" y="28" width="543" height="1" uuid="18910289-e647-4bd7-a5e2-51ca91e23ffe"/> </line> </band> </title> <pageHeader> <band height="34" splitType="Stretch"> <staticText> <reportElement x="10" y="0" width="51" height="20" uuid="7751674a-184f-4b0f-9b1d-85c2989dba87"/> <textElement> <font fontName="Arial Narrow" size="12"/> </textElement> <text><![CDATA[language :]]></text> </staticText> <textField> <reportElement x="61" y="0" width="187" height="20" uuid="ffc84dbe-d26e-4307-b450-54532976383e"/> <textElement> <font fontName="Arial Narrow" size="12"/> </textElement> <textFieldExpression><![CDATA[$F{language}]]></textFieldExpression> </textField> </band> </pageHeader> <columnHeader> <band height="16" splitType="Stretch"> <staticText> <reportElement x="160" y="0" width="201" height="15" uuid="7105f5a1-273c-467d-aee3-8db16572638c"/> <textElement> <font fontName="Arial Black" isBold="true"/> </textElement> <text><![CDATA[bOOK]]></text> </staticText> <staticText> <reportElement x="10" y="0" width="150" height="15" uuid="7f15ee99-0e87-4126-814e-b5d05313ceaa"/> <textElement> <font fontName="Arial Black" isBold="true"/> </textElement> <text><![CDATA[iSBN]]></text> </staticText> <staticText> <reportElement x="361" y="0" width="181" height="15" uuid="cd57a032-e31d-446c-9f31-f4a3be39d083"/> <textElement> <font fontName="Arial Black" isBold="true"/> </textElement> <text><![CDATA[LESSON]]></text> </staticText> </band> </columnHeader> <detail> <band height="23" splitType="Stretch"> <textField> <reportElement x="160" y="2" width="201" height="20" uuid="efefe42e-b394-4702-b809-8efb0038f677"/> <textElement> <font fontName="Arial Narrow" size="12"/> </textElement> <textFieldExpression><![CDATA[$F{book}]]></textFieldExpression> </textField> <textField pattern="" isBlankWhenNull="true"> <reportElement x="10" y="2" width="150" height="20" uuid="4288d1b8-a22e-4825-aa3f-9fefcbf13cff"/> <textElement> <font fontName="Arial Narrow" size="12"/> </textElement> <textFieldExpression><![CDATA[$F{isbn}]]></textFieldExpression> </textField> <textField> <reportElement x="361" y="2" width="181" height="20" uuid="efd01885-60f9-4e3b-b36f-4f47d09233f0"/> <textElement> <font fontName="Arial Narrow" size="12"/> </textElement> <textFieldExpression><![CDATA[$F{lesson}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="45" splitType="Stretch"/> </columnFooter> <pageFooter> <band height="30" splitType="Stretch"> <textField> <reportElement x="433" y="10" width="80" height="20" uuid="2dcf2e46-72c0-47e3-8b0d-fdba36ffdd2d"/> <textElement textAlignment="Right"> <font fontName="Arial Narrow" size="12" isItalic="false"/> </textElement> <textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> </textField> <textField evaluationTime="Report"> <reportElement x="513" y="10" width="40" height="20" uuid="dc6a084c-0f08-4835-99ab-0ffd3f978680"/> <textElement> <font fontName="Arial Narrow" size="12" isItalic="false"/> </textElement> <textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> <textField pattern="dd/MM/yyyy HH.mm.ss"> <reportElement x="51" y="10" width="122" height="20" uuid="2f40a28d-a202-4c53-9d7d-c20b416e5541"/> <textElement> <font fontName="Arial Narrow" size="12" isItalic="false"/> </textElement> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> </textField> <staticText> <reportElement x="10" y="10" width="41" height="20" uuid="e0f1138b-d718-437a-ab0b-666cd7218f16"/> <textElement> <font fontName="Arial Narrow" size="12" isItalic="false"/> </textElement> <text><![CDATA[Printed :]]></text> </staticText> </band> </pageFooter> <summary> <band height="42" splitType="Stretch"/> </summary> </jasperReport>
  2. I am looking for more than 2 weeks for a solution to integrate JasperReport 5.5.0 into my project. Previously, I did this with Ant, so integration was easy. But I can not find a way to do that with gradle. Please help me.
  3. I use jasper reports in netbeans. Now I will get data from a hoster for a report. I will use javabeans-collection as datasource. Now the Problem: When I tell ireport the class, I must set in the Classpath under TOOLS/Options/ireport a fix Classpath. This will not run when the jar is running on other system. How can I set the Classpath dynamically, or set the Classpath from java during runtime.
  4. I use Jasper only for my privat projekts in java. Now I want try to get data from a Hoster via php, i can get a json String or a resultarray in my classconcept. How can I get the data in a jasper report, in case that i can test the report, get a preview and so on. You know a best practice. And a second question, is Jasper costless ? Please excuse my english, I'am german.
×
×
  • Create New...