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

lucianc

Members
  • Posts

    5,609
  • Joined

  • Last visited

  • Days Won

    3

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by lucianc

  1. What you need to avoid for Excel and other grid based exporters is overlapping elements. Such exporters are inherently unable to export multiple elements that occupy the same space, therefore overlapped elements are skipped. This is the main culprit for elements missing in Excel exports. Regards, Lucian
  2. That's a strange error. The link that you posted seems invalid, could you attach the jar file that you created?
  3. Try setting the net.sf.jasperreports.export.html.wrap.break.word property to true. An alternative solution is to set the net.sf.jasperreports.text.save.line.breaks property instead.
  4. Could you post a JRXML to reproduce the behaviour?
  5. The text field is limited by its element width. Does the text stretch horizontally beyond 390 pixels? Regards, Lucian
  6. Try to enable Print When Detail Overflows (isPrintWhenDetailOverflows="true" in JRXML) for the two text fields. Regards, Lucian
  7. Please log a tracker item to make the analyzer configurable. Thank you, Lucian
  8. If you are using JasperReports 6.2.0 or newer and a font extension with Identity-H PDF encoding, it should work fine. If it doesn't please attach the JRXML and the font extension that you are using. Regards, Lucian
  9. I don't think directly converting the expression to Java is possible. For one, Groovy allows calling void methods in expressions (evaluating to null) but in Java there's no way to call a void method (such as Calendar.set or Calendar.add) in an expression. One alternative is to write a method in a utility class (or create a custom function in Jaspersoft Studio), and use it in the expression. Cramming too much logic in an expression is not generally a good idea, having it implemented externally would allow you to do more things, reuse it, etc. Regards, Lucian
  10. Yes, ExtensionsEnvironment.setSystemExtensionsRegistry sets a global extensions registry. If you want to set a registry for the current thread only, you can use ExtensionsEnvironment.setThreadExtensionsRegistry. Another option is to create a JasperReportsContext instance (for example SimpleJasperReportsContext), set the extensions in the context and use it for all the JR calls. Regards, Lucian
  11. How are you running the report? The expression will only work when running the report in JasperReports Server.
  12. Try the following expression to show the JRXML resource version: ((com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit) com.jaspersoft.jasperserver.api.engine.jasperreports.util.RepositoryUtil.getThreadRepositoryContext().getReportUnit()).getMainReport().getLocalResource().getVersion()[/code]Regards, Lucian
  13. The net.sf.jasperreports.chart.domain.axis.tick.interval property might help, see http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.chart.domain.axis.tick.interval Regards, Lucian
  14. The new HtmlExporter does not support using images for alignment. So you no longer need to set IS_USING_IMAGES_TO_ALIGN to false, it is false by default. Regards, Lucian
  15. The Excel exporter in JRS is configured to ignore images (including charts) by default. You can change the global configuration by editing WEB-INF/applicationContext.xml, finding a bean called xlsExportParameters and setting its ignoreGraphics property to false. If you only want to change the configuration for a report, you can set the net.sf.jasperreports.export.xls.ignore.graphics property to false at report/JRXML level. Regards, Lucian
  16. Does the report preview show the text properly aligned in JSS 6.2.2? Is the problem only happening when running the report in your application (outside JSS)? If so, try putting the following expression in a text element and running the report in your application: getClass().getResource("net/sf/jasperreports/engine/JasperReport.class")[/code]What is the resource URL that you get? Btw, note that you don't need both jasperreports-6.2.2.jar and jasperreports-javaflow-6.2.2.jar, the latter is a variant of the default jar that is meant to be used with the Javaflow subreport executer. Regards, Lucian
  17. If you use Xalan as XPath engine (see the net.sf.jasperreports.xpath.executer.factory property), you can take advantage of the current() function and map a report field to something like /model/folder[@type=application]/element[@id=current()/@source]/@name This will not work with Jaxen, which doesn't have the current() function (which is not actually part of XPath 1.0 but a XSLT extension). An alternative solution is to use a list element with a subdataset that selects the value given $F{source}. The exact way of doing that depends on the way in which the report data source is defined (that is on whether the report directly receives an XML data source or it has the XPath expression as report query). Regards, Lucian
  18. The Custom Visualization component is available as a separate jar, you can get it for instance from https://jaspersoft.artifactoryonline.com/jaspersoft/repo/com/jaspersoft/jasperreports/jasperreports-customvisualization/ I'm not very familiar with the component, there might be some configuration needed to have it working with the JR library. I don't think there are plans to include the component in the main JR library, but having the component jar on the classpath should do. Also note that since 6.2.2 you can directly SVG in image elements. Regards, Lucian
  19. Log a bug in the trackers if you think JR should better handle the specific error scenario. A test case would help, I tried running JR without its jasperreports_extension.properties and I didn't get the error that you got.
  20. One thing that you can try is to enable AWT headless mode on the server machine by adding -Djava.awt.headless=true to the Java arguments. If that doesn't get rid of the error, try getting the latest 6.3.0 snapshot from https://jaspersoft.artifactoryonline.com/jaspersoft/repo/net/sf/jasperreports/jasperreports/6.3.0-SNAPSHOT/ and test your application with that. The error might still occur, but at least it should log the original exception (which is currently obscured). Regards, Lucian
  21. Did you set hyperlinkType="Reference" for the text field? Regards, Lucian
  22. Do you have any batik jars in your application? Does this error occur for specific reports?
  23. Adding the following line to WEB-INF/classes/jasperreports.properties should do: net.sf.jasperreports.export.pdf.version=7 Regards, Lucian
  24. Select the column group in Jaspersoft Studio and change Total Position to Start in the properties view. In JRXML it would look like <columnGroup .. totalPosition="Start"> Regards, Lucian
×
×
  • Create New...