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

dhombios

Members
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

dhombios'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 could make a Custom Visualization Component to solve that (https://community.jaspersoft.com/wiki/custom-visualization-component-v60x and https://community.jaspersoft.com/wiki/creating-your-custom-visualization-components-v60x) or it might be possible to generate it as a png which can then be imported in the report as a photo
  2. I haven't used it for generating Excel files, but pdfs just require the library itself: <!-- https://mvnrepository.com/artifact/net.sf.jasperreports/jasperreports --> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>6.16.0</version> </dependency> However, if your project requires some of the extentions this library, the POM should also contain them. For example, the Custom Visualization Components extention requires the following dependency: </dependency> <!-- https://mvnrepository.com/artifact/net.sf.jasperreports/jasperreports-cu... --> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports-custom-visualization</artifactId> <version>6.16.0</version> </dependency>
  3. Despite having added the Custom Visualization Component extention jar to the application path, it seems that Jasper Reports Library is unable to find it and continues throwing an Exception when a jxml with a CVC is provided (I attach the POM and the error below). Nevertheless, the wiki just contains the instructions for setting up it when Jasper Reports Studio or Jasper Reports Server are used (https://community.jaspersoft.com/wiki/custom-visualization-component-v60x) and neither the Jasper Reports Library wiki (https://community.jaspersoft.com/wiki/jasperreports-library-reference-materials) nor its github repository (https://github.com/TIBCOSoftware/jasperreports) provide further information about it. As a consequence of that article, I understand that it should just require specifying PhantomJs path by assigning it to the same variables that are used in the previous cases, but it appears that some additional configuration is required. Has anyone succesfully used this extension in a custom application or do you know where could the documentation of this extention be found? Thanks in advance POM dependencies: <dependencies> <!-- https://mvnrepository.com/artifact/net.sf.jasperreports/jasperreports --> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>6.16.0</version> </dependency> <!-- https://mvnrepository.com/artifact/net.sf.jasperreports/jasperreports-cu... --> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports-custom-visualization</artifactId> <version>6.16.0</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.poi/poi --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>5.0.0</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>5.0.0</version> </dependency> <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.30</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.7.30</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-collections4 --> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-collections4</artifactId> <version>4.4</version> </dependency> <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.7.30</version> <scope>test</scope> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <scope>test</scope> <version>2.44.0</version> </dependency> <dependency> <groupId>com.opera</groupId> <artifactId>operadriver</artifactId> <scope>test</scope> <version>1.5</version> <exclusions> <exclusion> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-remote-driver</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> <version>4.11</version> </dependency> </dependencies> Error: net.sf.jasperreports.engine.JRRuntimeException: Unknown entity http://www.jaspersoft.com/cvcomponent/component.xsd, not loading. net.sf.jasperreports.engine.JRRuntimeException: Unknown entity http://www.jaspersoft.com/cvcomponent/component.xsd, not loading. at net.sf.jasperreports.engine.xml.JRXmlDigester.resolveEntity(JRXmlDigester.java:232) at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:110) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:1081) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.resolveDocument(XMLSchemaLoader.java:657) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2430) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1767) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:740) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643) at org.apache.commons.digester.Digester.parse(Digester.java:1892) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:299) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:286) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:275) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:220) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:195) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:186) at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:289) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:576) at com.Dhombios.myreport.Report_generator.publish(Report_generator.java:48) at com.Dhombios.myreport.CLI.main(CLI.java:98) Report generation failed
×
×
  • Create New...