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

hell.gourmet

Members
  • Posts

    6
  • Joined

  • Last visited

hell.gourmet's Achievements

Rookie

Rookie (2/14)

  • First Post Rare
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi, I can confirm this bug/feature of JR. I was reading some topics where the only alternative to bypass this problem is use the lastpagereport just in the master report, but, like many of us can imagine this is not a solution in some particular reports. Will be a bless if teo or someone else user with much longer experience in JR than juan or me can explain us if we must abandon any hope about this topic problem. Thanks a lot. Forgive my bad english: is not my native language. PS: I have attached another example similar to juan's example. [file name=subreport_with_pagefooter.zip size=4546]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/subreport_with_pagefooter.zip[/file]
  2. Hi, I have the following code in a servlet to print a report Code: The problem that I have is when the report's query do not get anydata: the report is printed anyway but like a white page (in html or pdf). Are there some method to query if the report has data or not? I have the option Code: embebed in the .jrxml file but I get the blank page anyway. Some help will be welcome. Cheers! Post edited by: hell.gourmet, at: 2007/01/19 14:58
  3. I have found the solution: Must add the following before getting the printWriter to export the report to HTML: Code: response.setContentType("text/html"«»); out = response.getWriter(); Hope this helps someone else. Cheers!
  4. Hi, I have generated a report using a SQL sentence in Oracle where some data has non-english chars (like "á" i.e). When I export the report to HTML using iReport the results are OK, but when I export the same report from a webapp using this code: === starts here === JRHtmlExporter exporter = new JRHtmlExporter(); request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperprint); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperprint); exporter.setParameter(JRExporterParameter.OUTPUT_WRITER, out); exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "image?image="); exporter.exportReport(); === ends here === I got instead of good non-english chars a <?> symbol (see the image attached please). I have tried to use the UTF-8 char as a parameter but the problem persists. I can't modify the Oracle data, and is very strange: it works fine from iReport but not from the webapp (the HTML Export). I have tested the webapp from Win and Linux getting the same results. Any idea? Cheers and thx! Atacched image: size=153]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/i18n_problem.gifi18n_problem.gif Post edited by: hell.gourmet, at: 2007/01/08 20:42
×
×
  • Create New...