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

skatsnc

Members
  • Posts

    12
  • 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

Everything posted by skatsnc

  1. Thanks, it was just a path problem! It works now.
  2. I need to dynamically pass the location of an image to my report from Java. I have the location of the image as a parameter and then when I run it in iReport it looks fine. However when I run it in Java no image shows. Here is the code I'm using to run it from my application: JasperDesign jasperDesign = JRXmlLoader.load(reportSource); JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign); HashMap parameterMap = new HashMap(); parameterMap.put("rp_moNUM", moNUM); parameterMap.put("sp_barcodeFile", barcodeFile); <---Image Location JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameterMap, connection); JasperViewer.viewReport(jasperPrint, false); Any ideas? Thanks!
  3. I need to dynamically pass the location of an image to my report from Java. I have the location of the image as a parameter and then when I run it in iReport it looks fine. However when I run it in Java no image shows. Here is the code I'm using to run it from my application: JasperDesign jasperDesign = JRXmlLoader.load(reportSource); JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign); HashMap parameterMap = new HashMap(); parameterMap.put("rp_moNUM", moNUM); parameterMap.put("sp_barcodeFile", barcodeFile); <---Image Location JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameterMap, connection); JasperViewer.viewReport(jasperPrint, false); Any ideas? Thanks!
  4. In Netbeans, what jar files do I need to include in my project. I just want to make sure that I am including all of them bc I am getting some errors that I can't figure out.
  5. What jars are necessary to include?
  6. I am getting this error and don't know how to correct it: MyEventQueue.dispatchEvent: Exception during dispatch event: net.sf.jasperreports.engine.JRRuntimeException: Error creating SAX parser net.sf.jasperreports.engine.JRRuntimeException: Error creating SAX parser at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.createParser(JRReportSaxParserFactory.java:113) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createParser(JRXmlDigesterFactory.java:1131) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:1106) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:203) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:168) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:152) .... Caused by: org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage at gnu.xml.aelfred2.XmlReader.getProperty(XmlReader.java:181) at gnu.xml.aelfred2.XmlReader.setProperty(XmlReader.java:166) at gnu.xml.aelfred2.JAXPFactory$JaxpParser.setProperty(JAXPFactory.java:147) at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.configureParser(JRReportSaxParserFactory.java:144) at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.createParser(JRReportSaxParserFactory.java:108) It hits on this line: JasperDesign jasperDesign = JRXmlLoader.load(reportSource); I created a simple basic report in ireport that the reportSource string points towards. Is it possible that I'm not including a jar or something? I have the JasperLibrary added to my project then have all the imports that it asked for, but are there ones i need to include extra as well? Thanks
  7. Added: This is also in the error log if this helps explain -- Caused by: org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage at gnu.xml.aelfred2.XmlReader.getProperty(XmlReader.java:181) at gnu.xml.aelfred2.XmlReader.setProperty(XmlReader.java:166) at gnu.xml.aelfred2.JAXPFactory$JaxpParser.setProperty(JAXPFactory.java:147) at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.configureParser(JRReportSaxParserFactory.java:144) at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.createParser(JRReportSaxParserFactory.java:108)
  8. I am getting this error and don't know how to correct it: MyEventQueue.dispatchEvent: Exception during dispatch event: net.sf.jasperreports.engine.JRRuntimeException: Error creating SAX parser net.sf.jasperreports.engine.JRRuntimeException: Error creating SAX parser at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.createParser(JRReportSaxParserFactory.java:113) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createParser(JRXmlDigesterFactory.java:1131) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:1106) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:203) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:168) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:152) It hits on this line: JasperDesign jasperDesign = JRXmlLoader.load(reportSource); I created a simple basic report in ireport that the reportSource string points towards. Is it possible that I'm not including a jar or something? I have the JasperLibrary added to my project then have all the imports that it asked for, but are there ones i need to include extra as well? Thanks
  9. I am getting this error and don't know how to correct it: MyEventQueue.dispatchEvent: Exception during dispatch event: net.sf.jasperreports.engine.JRRuntimeException: Error creating SAX parser net.sf.jasperreports.engine.JRRuntimeException: Error creating SAX parser at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.createParser(JRReportSaxParserFactory.java:113) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createParser(JRXmlDigesterFactory.java:1131) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:1106) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:203) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:168) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:152) It hits on this line: JasperDesign jasperDesign = JRXmlLoader.load(reportSource); I created a simple basic report in ireport that the reportSource string points towards. Is it possible that I'm not including a jar or something? I have the JasperLibrary added to my project then have all the imports that it asked for, but are there ones i need to include extra as well? Thanks
  10. 1) Is there a way to but a non-static image into a report? 2) I am running a swing application and want to run a query on the same tables but with a different condition (a different ID). Is there a way to supply iReport with a variable such as an ID that would be given upon calling it to make the report from netbeans. An example would be that a user is looking at all of the parts that deal with a certain order and I want to make a report of all those parts, so iReport needs that order id. All I see how to do is to create a table of every "part". Thanks!
  11. Hey, I am wondering if JasperReports is what I should try and use. What I need is something that I can use to print a header that contains non-static items and a logo and then prints two tables. Is this something that JasperReport would be able to do? I currently have this written as a swing application in netbeans but am having trouble printing a swing component with headers and thought that this would be a viable alternative. Plase advise.
×
×
  • Create New...