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

2005 IR Help

Members
  • Posts

    2,830
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Posts posted by 2005 IR Help

  1. By: Tom Schindl - tomsontom

    Creating detail area greater than page-size

    2005-12-06 09:08

    I want to create a detail-area which is heigher than the maximum size of my actual page size. Is this supported or do I need to create subreports?

     

     

     

     

    By: psilva - aloiziops2006

    RE: Creating detail area greater than page-size

    2005-12-06 09:45

    I am with the same problem. When I create a detail area greater than page-size and click in visualize should be displayed Two page but it is showed four page with some white spaces and the last page is white. How I can solve this?

  2. By: macktheknife - mackyw

    0.5.2 error

    2005-12-04 08:31

    When starting the version 0.5.2,some exception print on the cmd window.

    Exception loading cID = maxRecords: Can't find resource for bundle java.util.Pro

    pertyResourceBundle, key maxRecords

     

    the gui window start ,but don't work when creating a new report or open and report to edit .when opening the subreport sample ,the reports can't be show .

     

    It's all these due to the Exception ?

     

     

     

     

    By: Giulio Toffoli - gt78

    RE: 0.5.2 error

    2005-12-06 09:42

    I miss to add this entry maxRecords in locale.properties file: iReport will use the default label instead ("Max records").

     

    You can consider it as a "warning", not as an exception.

     

    Giulio

  3. By: tolga gucuk - e111982

    faces jsp

    2005-12-05 05:55

    Can anyone know how jasper report is used in faces jsp files. How a pdf report is send from faces jsp?

     

    thanks.

  4. By: Viraf Karai - virafk

    iReport - rendering charts before details.

    2005-12-04 18:48

    Is it somehow possible to render a chart on page 1 and then print out the details. I know that the report is subdivided into bands and typically the chart comes in the summary band at the end of the report. My boss thinks that our customers would prefer to see the chart prior to seeing the rest of the report.

     

    Thanks in advance.

  5. By: subesingh - subesingh1

    SubReport data alignment in main Report

    2005-12-03 05:50

    Hi all,

     

    I have a problem related to alignment of subreport data or records in main or master report.I have added a subreport in detail band of

    master report but its data alignment is not same main report. It have lot of space in left and top side.

     

    It is urgent.I hope that will get reply.

     

    With Best Regards,

    Sube

     

     

     

     

     

     

     

     

     

     

    By: cfi - delphinecfi

    RE: SubReport data alignment in main Report

    2005-12-03 06:04

    In the subreport don't have top/bottom/left/right margin. Set the page height to be exacty the same as the added up height of all ht ebands in hte subreport. In the main report, set the width of the subreport element to be the same as the width of the subreport. Make sure that the width of the sub report is same as the width of the main report excluding the width of the left and right margins.

     

    Hope this helps. Please keep posted if this works.

     

    -Delphine.V

  6. By: roothogincr - roothogincr

    Run Report using a connection is blank

    2005-12-02 14:21

    New to IReports.

     

    I can run a simple report (print a title) using empty datasource and get the report to display.

     

    BUT when I run the same report using a connection, I get a blank page to display.

     

    When I test the database connection, I get connection test succesful.

     

    We can run queries against the database,

    but running the same query in a report doesn't work.

     

    Am I missing something with the database connection????

     

    Thanks.

  7. By: Neil Lamka - neil_lamka

    How to use beforeDetailEval to set a var.

    2005-11-30 16:05

    I'm trying to put together my first scriptlet so this may be a dumb questionl

     

    First, I'm assuming that the beforeDetailEval method in a scriptlet is called for each row in the returned results. Is this true?

     

    What I was trying to do was to set the value of a report variable from this method call but I seem to only get null as the result.

     

    In a simple test i have a global variable

     

    int counter=0;

     

    I then have the implementation that looks like

    public void beforeDetailEval() throws JRScriptletException

    {

    setVariableValue("testInt", new java.lang.Integer( counter++ ));

     

    }

    where the variable testInt is defined as a java.lang.Integer in the report.

     

    In the detail band I use $V{testInt} in the report but seem to only get null values in return.

     

    Obviously I'm missing something basic here and any pointers would be helpful.

     

    Thanks

    Neil

     

     

     

     

    By: spalazzi - spalazzi

    RE: How to use beforeDetailEval to set a var.

    2005-12-02 06:09

    try with

    this.setVariableValue("testInt", new java.lang.Integer( counter++ ));

  8. By: tonyhd - tonyhd

    Error compiling all jrxml reports in 0.5.2

    2005-11-29 17:48

    I created a simple report using the wizard. When I issue the build option I always get the following error:

    it.businesslogic.ireport.ReportClassLoader@73a35c 474828 [Thread-32] ERROR digester.Digester - Parse Fatal Error at line 19 column 29: Attribute "" bound to namespace "null" was already specified for element "jasperReport". org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLNSDTDValidator.startNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1647) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:461) at java.lang.Thread.run(Unknown Source) org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport". at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1647) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:461) at java.lang.Thread.run(Unknown Source) NESTED BY : net.sf.jasperreports.engine.JRException: Attribute "" bound to namespace "null" was already specified for element "jasperReport". at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:242) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:461) at java.lang.Thread.run(Unknown Source) Caused by: org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport". at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1647) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238) ... 7 more

     

    This message is generated even when compiling a report that compiles fine with the jasperreports compiler run standalone.

     

    thanks!

     

     

     

     

    By: David Karnowski - karnowski

    RE: Error compiling all jrxml reports in 0.5.

    2005-12-01 10:16

    I get the same error but the other way around. My PC ireports installation works fine, but my Unix ant jasper reports builds fail with the error you are receiving. I just posted in this forum before I read your thread: http://sourceforge.net/forum/forum.php?thread_id=1395124&forum_id=217623

     

    If you find out what the problem is outside of this forum please post it here (or in my thread).

     

     

     

     

    By: David Karnowski - karnowski

    RE: Error compiling all jrxml reports in 0.5.

    2005-12-01 13:41

    I found the problem for my case. Same probably applies for you. Upgrade to the latest version of Ant: http://ant.apache.org.

    See my thread for details: http://sourceforge.net/forum/forum.php?thread_id=1395124&forum_id=217623

     

     

     

     

    By: tonyhd - tonyhd

    RE: Error compiling all jrxml reports in 0.5.

    2005-12-01 19:32

    I fixed the problem on my end. It appeared that I had a non-compatible version of sax digester in my standard java classpath (the one I use for my builds). This was getting picked up by IReport. I modified the iReport bat file to clear the classpath and just set it to . before calling the rest of startup for iReport.

     

    Not sure if this problem is affecting you on ant but but it sounds like the same problem. I did not run into this with Ant as I always build my classpath in my ant build.xmls without using my default set one.

     

    Tony

  9. By: David Karnowski - karnowski

    Ant builds fail

    2005-12-01 09:29

    Hi,

     

    When I compile jrxml files with an ant "jrc" taskdef I get the following error:

    [jrc] SEVERE: Parse Fatal Error at line 4 column 186: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

     

    This occurs even in the "antcompile" sample directory, and for any sample directory that uses the "jrc" taskdef in build.xml.

     

    I have no problem compiling the sample reports that do not use the "jrc" taskdef. So for example, I can compile the "query" and "text" samples OK with "ant javac" followed by "ant compile".

     

    Any ideas?

     

    Here's the full error stack trace:

     

    $ pwd

    /etrade/home/dkarnows/work/jasper/jasperreports-1.1.1/demo/samples/antcompile

    $ ant

    Buildfile: build.xml

     

    compile1:

    [mkdir] Created dir: /etrade/home/dkarnows/work/jasper/jasperreports-1.1.1/demo/samples/antcompile/build/reports

    [jrc] Compiling 2 report design files.

    [jrc] Dec 1, 2005 12:12:55 PM org.apache.commons.digester.Digester fatalError

    [jrc] SEVERE: Parse Fatal Error at line 4 column 186: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

    [jrc] org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

    [jrc] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

    [jrc] at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

    [jrc] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

    [jrc] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

    [jrc] at org.apache.xerces.impl.dtd.XMLNSDTDValidator.startNamespaceScope(Unknown Source)

    [jrc] at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)

    [jrc] at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)

    [jrc] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

    [jrc] at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)

    [jrc] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

    [jrc] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

    [jrc] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

    [jrc] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

    [jrc] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

    [jrc] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

    [jrc] at org.apache.commons.digester.Digester.parse(Digester.java:1647)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)

    [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107)

    [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:398)

    [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:252)

    [jrc] at org.apache.tools.ant.Task.perform(Task.java:341)

    [jrc] at org.apache.tools.ant.Target.execute(Target.java:309)

    [jrc] at org.apache.tools.ant.Target.performTasks(Target.java:336)

    [jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

    [jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)

    [jrc] at org.apache.tools.ant.Main.runBuild(Main.java:609)

    [jrc] at org.apache.tools.ant.Main.start(Main.java:196)

    [jrc] at org.apache.tools.ant.Main.main(Main.java:235)

    [jrc] File : /etrade/home/dkarnows/work/jasper/jasperreports-1.1.1/demo/samples/antcompile/reports/com/bar/BarReport.jrxml ... FAILED.

    [jrc] Error compiling report design : /etrade/home/dkarnows/work/jasper/jasperreports-1.1.1/demo/samples/antcompile/reports/com/bar/BarReport.jrxml

    [jrc] org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

    [jrc] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

    [jrc] at org.apache.commons.digester.Digester.parse(Digester.java:1647)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)

    [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107)

    [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:398)

    [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:252)

    [jrc] at org.apache.tools.ant.Task.perform(Task.java:341)

    [jrc] at org.apache.tools.ant.Target.execute(Target.java:309)

    [jrc] at org.apache.tools.ant.Target.performTasks(Target.java:336)

    [jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

    [jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)

    [jrc] at org.apache.tools.ant.Main.runBuild(Main.java:609)

    [jrc] at org.apache.tools.ant.Main.start(Main.java:196)

    [jrc] at org.apache.tools.ant.Main.main(Main.java:235)

     

    [jrc] NESTED BY :

    [jrc] net.sf.jasperreports.engine.JRException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:242)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)

    [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107)

    [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:398)

    [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:252)

    [jrc] at org.apache.tools.ant.Task.perform(Task.java:341)

    [jrc] at org.apache.tools.ant.Target.execute(Target.java:309)

    [jrc] at org.apache.tools.ant.Target.performTasks(Target.java:336)

    [jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

    [jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)

    [jrc] at org.apache.tools.ant.Main.runBuild(Main.java:609)

    [jrc] at org.apache.tools.ant.Main.start(Main.java:196)

    [jrc] at org.apache.tools.ant.Main.main(Main.java:235)

    [jrc] Caused by: org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

    [jrc] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

    [jrc] at org.apache.commons.digester.Digester.parse(Digester.java:1647)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)

    [jrc] ... 15 more

    [jrc] Dec 1, 2005 12:12:55 PM org.apache.commons.digester.Digester fatalError

    [jrc] SEVERE: Parse Fatal Error at line 4 column 186: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

    [jrc] org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

    [jrc] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

    [jrc] at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

    [jrc] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

    [jrc] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

    [jrc] at org.apache.xerces.impl.dtd.XMLNSDTDValidator.startNamespaceScope(Unknown Source)

    [jrc] at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)

    [jrc] at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)

    [jrc] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

    [jrc] at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)

    [jrc] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

    [jrc] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

    [jrc] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

    [jrc] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

    [jrc] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

    [jrc] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

    [jrc] at org.apache.commons.digester.Digester.parse(Digester.java:1647)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)

    [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107)

    [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:398)

    [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:252)

    [jrc] at org.apache.tools.ant.Task.perform(Task.java:341)

    [jrc] at org.apache.tools.ant.Target.execute(Target.java:309)

    [jrc] at org.apache.tools.ant.Target.performTasks(Target.java:336)

    [jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

    [jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)

    [jrc] at org.apache.tools.ant.Main.runBuild(Main.java:609)

    [jrc] at org.apache.tools.ant.Main.start(Main.java:196)

    [jrc] at org.apache.tools.ant.Main.main(Main.java:235)

    [jrc] File : /etrade/home/dkarnows/work/jasper/jasperreports-1.1.1/demo/samples/antcompile/reports/com/foo/FooReport.jrxml ... FAILED.

    [jrc] Error compiling report design : /etrade/home/dkarnows/work/jasper/jasperreports-1.1.1/demo/samples/antcompile/reports/com/foo/FooReport.jrxml

    [jrc] org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

    [jrc] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

    [jrc] at org.apache.commons.digester.Digester.parse(Digester.java:1647)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)

    [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107)

    [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:398)

    [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:252)

    [jrc] at org.apache.tools.ant.Task.perform(Task.java:341)

    [jrc] at org.apache.tools.ant.Target.execute(Target.java:309)

    [jrc] at org.apache.tools.ant.Target.performTasks(Target.java:336)

    [jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

    [jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)

    [jrc] at org.apache.tools.ant.Main.runBuild(Main.java:609)

    [jrc] at org.apache.tools.ant.Main.start(Main.java:196)

    [jrc] at org.apache.tools.ant.Main.main(Main.java:235)

     

    [jrc] NESTED BY :

    [jrc] net.sf.jasperreports.engine.JRException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:242)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)

    [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107)

    [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:398)

    [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:252)

    [jrc] at org.apache.tools.ant.Task.perform(Task.java:341)

    [jrc] at org.apache.tools.ant.Target.execute(Target.java:309)

    [jrc] at org.apache.tools.ant.Target.performTasks(Target.java:336)

    [jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

    [jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)

    [jrc] at org.apache.tools.ant.Main.runBuild(Main.java:609)

    [jrc] at org.apache.tools.ant.Main.start(Main.java:196)

    [jrc] at org.apache.tools.ant.Main.main(Main.java:235)

    [jrc] Caused by: org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

    [jrc] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

    [jrc] at org.apache.commons.digester.Digester.parse(Digester.java:1647)

    [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)

    [jrc] ... 15 more

     

    BUILD FAILED

    file:/etrade/home/dkarnows/work/jasper/jasperreports-1.1.1/demo/samples/antcompile/build.xml:29: Errors were encountered when compiling report designs.

     

    Total time: 7 seconds

     

    Thanks,

    David

     

     

     

     

    By: David Karnowski - karnowski

    RE: Ant builds fail

    2005-12-01 13:40

    Resolved: The problem is the version of Ant that I was using (1.5.3). I upgraded to version 1.6.5 and the build works. I believe Ant changes the CLASSPATH and some of the JARs shipped with earlier Ant versions are incompatible with the current Jasper.

  10. By: Marc Concannon - marcconcannon

    Error starting ireports 0.5.2

    2005-11-29 15:46

    Hi

     

    Have downloaded I-reports 0.5.2

     

    Copied over the tools.jar file from my jdk jdk1.5.0_04

     

    not sure why ... eclipse - jboss all run fine but not ireports.

     

    error below:

     

    C:iReports>iReport.bat

    Exception in thread "main" java.lang.NoClassDefFoundError: it/businesslogic/ireport/gui/MainFrame

    C:iReports>

     

    any ideas?

     

     

     

     

    By: David Karnowski - karnowski

    RE: Error starting ireports 0.5.2

    2005-12-01 10:09

    Probably should post this in the iReports forum, but it looks like a CLASSPATH problem. You could change the first line in the "binstartup.bat" script to be "@echo on" and then look at the command that gets run last before the failure which should be:

     

    java -cp ... -Xms24m -Xmx512m it.businesslogic.ireport.gui.MainFrame

     

    The parameter following the "-cp" should show the classpath. I think the important one that needs to be in there that relates to your failure should be .libiReport.jar. If it's not in there then I'm guessing your iReport install is bad.

  11. By: Rivka Shisman - rivka_shisman

    report becomes unreadable in pdf view

    2005-12-01 07:28

    hello there,

     

    i designed a report and it looks ok in the JRViewer preview and also in html preview.

     

    when i try to see it in pdf preview (pdf v7) i get a mess - i see only the numeric values (shifted aside) and none of the hebrew strings.

     

    do you know what i'm doing wrong?

     

    thanks

    Rivka

  12. By: Rivka Shisman - rivka_shisman

    space between rows

    2005-11-29 08:16

    hi all

     

    I really can't find how to reduce the space between rows in the detail band.

     

    please help

     

    Thanks

    Rivka

     

     

     

     

    By: hillary - wikkitt

    RE: space between rows

    2005-11-29 08:40

    Make sure your details band is just the size you need. If there is extra space above or below your content, that extra space will print each time.

     

    ex.

    ------------------

     

    val1 val2 val3

     

     

    ------------------

     

    shrink the band to fit your content

     

    -----------------

    val1 val2 val3

    -----------------

     

    the same goes for subreports, any extra space will be printed.

     

    if that's not the case, try a Print When expression for the details band.

     

    Hope this helps

     

     

     

     

     

    By: Rivka Shisman - rivka_shisman

    RE: space between rows

    2005-12-01 07:23

    thanks hillary - it really helped!!!

  13. By: GoN_DV - gon_dv

    Gantt charts, again.

    2005-12-01 07:19

    Hi, i´m trying to include Gantt charts in my reports, is it posible? If its posible, can anyone tell me clearly how to do it? The only way I think its posible, is drawing the chart with the JFreechart library and then include it like an image in my report....

    Thanks a lot.

  14. By: akmalkhan - akmalkhan

    Urgent : How to run a query multiple time

    2005-11-29 00:56

    Hi,

     

    I am new to jasper report. I need your help to solve a problem. Pls help me , it is urgent. I have two tables called EMPLOYEE and DEPENDANT.

     

    User would select list of employee and somes dates.

    I need to display DEPENDANT information for selected employees.

     

    For example , if user select 500 employee from list, I need to display DEPENDANT information of all 500 Employee,the output would be as follow :-

     

    EMP NO : 001 EMP NAME : DAVID

     

    DEPENDANT NAME : RAHUL

    RELATIONSHIP TYPE: SON

    SEX : M

    .

    .

    .

     

    EMP NO : 500 EMP NAME : PETER

     

    DEPENDANT NAME : LINDA

    RELATIONSHIP TYPE: DAUGHTER

    SEX : F

     

    My doubt is as follow :-

     

    *) How to form a query for Employee table. Since number of employee is based on dynamic selection.

     

    *) How to retrieve dependant info for employee which is selected .

     

    *) or if you have any good solution for this problem pls let me know soon. It is so urgent. Awaiting for your reply.

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    By: hillary - wikkitt

    RE: Urgent : How to run a query multiple time

    2005-11-29 10:57

    You will need to create your sql query dynamically and either send the whole query as a $P{} or just the where caluse.

    First, do a join on the two tables. Assuming you use employee no. as a primary and foriegn key.

     

    -following your example-

    select e.emp_no, e.emp_name, d.dep_name, d.relationship, d.sex from employee e, dependant d where e.emp_no = d.emp_no

     

    now to select a list of chosen employees you will probably need to use the sql IN operator. This you can pass as a $P{}.

     

    where e.emp_no IN (001, 501,....)

     

    this will pull all records matching the list.

     

    look at http://www.firstsql.com/tutor2.htm for mor e sql tips.

     

     

     

     

    By: akmalkhan - akmalkhan

    RE: Urgent : How to run a query multiple time

    2005-11-29 18:43

    Hi,

    Thank you wikkitt. if user selects more than 2000 employee, can we include 2000 EMP_NO in query.Last time When I execute a query which had 2500 Charectors , i got exception from JDBC.

    In my case the length of query is changed based on employee selection. if query size is bigger, will we get any exception ? How many items can be included with in the bracket of IN. Pls suggest me.

     

     

     

     

     

     

     

     

     

     

     

     

    By: hillary - wikkitt

    RE: Urgent : How to run a query multiple time

    2005-11-30 14:54

    I wasn't aware that there was a limit to the size of a sql stmt.

     

    Perhaps there is a way to put the selection list in a sql bind variable and putting that in your sql stmt. That would cut down on the character count. But, to be honest, I'm not familiar with using sql bind.

     

    I would find someone who knows more about the database you are using and ask them.

     

    Sorry

  15. By: skimsxc - skimsxc

    Hexa values in iReport

    2005-11-30 14:22

    Hi,

     

    I need to put form feed character in the report.

    Experiencing compilation error when I tried to put in static text, in textfield, in value, etc).

    Could someone let me know how to do this ?

     

    Thanks,

  16. By: cbaeza - cbaeza

    We haven Grid in iReport - Associte element..

    2005-11-30 10:57

    Hi,

    Provide iReport a "Grid" funtionality for associated a elements groups ???

     

    Example:

     

    (page 1)

    paragraph 1

    paragraph 2

    paragraph 3

     

    (page 2)

    paragraph 4

    paragraph 5

    paragraph 6

    Firma 1, Firma 2 //(*)

     

    (*): The idea ist associated "Firma 1" and "Firma 2" in the self page (page 2), not in a new page.

     

    Thanks in advanced,

    Carlos

  17. By: cbaeza - cbaeza

    Display data depending on Group ?

    2005-11-30 05:54

    Hi,

     

    1) I wish know if iReport can I data display depending on the Gruop. Example:

     

    if Group = Client --> Display "Client" (repot,page 1, barcode, etc)

    if Group = Banco --> Display "Banco" (report, page 2, barcode, etc)

     

    in diferent pages !

     

    2) Can I anexed a new page?

    3) what advantage have the "Group" funcionality??

     

    an Example ??

    Thanks in advanced,

    Carlos

  18. By: akmalkhan - akmalkhan
    ClassNotFound : Class path error from iReport
    2005-11-30 03:14
    Hi
    When i design report using JavaBean ,iReport is not deducting my Bean and says that Bean is not available in classpath. But i included that class into classpath using menu. But still it says error.

    Pls how to connect my Bean from iReport. Where to set class path.

    If you have any screen shot or demo , pls send it too.

    Thanks!

  19. By: akmalkhan - akmalkhan

    How to use JavaBean DataSource in iReport

    2005-11-30 03:11

    Hi ,

     

    Issue 1 : My report query is complex. What i like to do, i want to run some query and will get some collecion of beans. After that I want to send this bean collection to Jasper API in order to fill.

     

    How to do this pls suggest me , if you have any example pls send it too.

  20. By: sagi7 - sagi7

    Condition to print on last detail on page

    2005-10-20 00:43

    Hello,

     

    is ist possible, to get a condition, that i can print an element only when its detail band is the last on page?

     

     

     

     

    By: pubDispName - mellino

    RE: Condition to print on last detail on page

    2005-11-04 00:48

    I have the same problem, please if someone give you help...

    can you forward the solution? mellino@mellino.net

    thanks

     

     

     

     

    By: jem11 - gigio11

    RE: Condition to print on last detail on page

    2005-11-28 12:53

    i have the same problem, if someone gets the solution please let me know.

     

    thanks

     

    Gigio11

     

     

     

     

    By: cfi - delphinecfi

    RE: Condition to print on last detail on page

    2005-11-27 11:22

    try this

     

    For the element you want to set in the last page set the prnt when expression as

     

    new Boolean(Integer.parseInt(String.valueOf($V{PAGE_NUMBER})) == Integer.parseInt(String.valueOf($V{PAGE_NUMBER})))

     

    Hope this helps.

     

    -Delphine.V

     

     

     

     

    By: C-Box - c-box

    RE: Condition to print on last detail on page

    2005-11-29 12:04

    Isn't "Integer.parseInt(String.valueOf($V{PAGE_NUMBER})) == Integer.parseInt(String.valueOf($V{PAGE_NUMBER}))" the same and will return ALWAYS TRUE????????

     

    Shouldn't you compare an own variable with the builtin V-PageNumber variable!??!?!

     

    C-Box

  21. By: cbaeza - cbaeza

    Well-Formed Document with Sub Report

    2005-11-29 10:39

    Hi,

    When I used Subreport I don´t can well format my document. The result is many pages with blank spaces (a part with date and other part with blank space).

     

    Other alternative is not use Subreport, but the problem is navigated throught a node <reglam clau>.

     

    I have very questions about iReport and his capacity for formated very well a document as Microsoft Word (all capacity).

     

    Know you the real capacity of iReport for formated document with very extensive date source (XML DataSource)??

     

    any information is useful.

    Thanks

    CArlos

     

     

     

     

     

     

    By: C-Box - c-box

    RE: Well-Formed Document with Sub Report

    2005-11-29 11:59

    As I do use many SubReports (up to 12 - even with nested SubReports) just a few tips:

    - remove all margins within your subreports

    - put each subreport-element in its own dummygroupband

    - use the PositionType "float" when elements are stretching

    - don't let free space between band-bottom and last element if you need some space make it at the band-top

     

    I get well formed output - so it's possible!

     

    hth

    C-Box

  22. By: tolga gucuk - e111982

    please help..

    2005-11-29 04:22

    hi when i write this expression it does not compile.

     

    (($F{purchase_type}==1) ? "[√] Mal Alımı" : " [ ] Mal Alımı ")

     

    when write it as

    (($F{purchase_type}.intValue()==1) ? "[√] Mal Alımı" : " [ ] Mal Alımı ")

     

    it always gives the second string. where do i make mistake.

    thanks a lot.

     

     

     

     

    By: hillary - wikkitt

    RE: please help..

    2005-11-29 08:33

    Try using $F{purchase_type}.equals(1)

    You may have to declare the 1 as new Integer(1) within the .equals() function

    ex. $F{purchase_type}.equals(new Integer(1))

     

    hope this helps

    wikkitt

  23. By: tolga gucuk - e111982

    row number..

    2005-11-29 04:44

    i want to write the row numbers for all the detail values. for example

     

    c1 c2 c3

    -----------------------

    1 valc2 valc3

    2 valc2 valc3

    3 valc2 valc3

     

    how can i show 1,2,3... in my report. thanks.

     

     

     

     

    By: Gunnar Groetschel - groetschel

    RE: row number..

    2005-11-29 07:11

    Hi

     

    You click on the left side on Object Library and choose from Variable --> Report_count and drag it to the detail Band. In the properties you choose under text field "evaluation time" now.

     

    Thats it.

     

    Best regards

    Gunnar

×
×
  • Create New...