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

feric

Members
  • Posts

    3
  • Joined

  • Last visited

feric's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Did you ever figure this out? I have the same problem and am unable to generate a preview from IReport using my xml datasource. Thanks for any tips on hos to solve this.
  2. Have you found a solution. I am encountering the same problem but the other way: works in my junit test and works in my deployed application but don't see the subreport from ireport????
  3. Hello, I have a peculiar problem. When I generate my pdf report this way: Map params = new HashMap(); Document document = JRXmlUtils.parse(new InputSource(this.getClass().getResourceAsStream("container.xml"))); params.put(JRXPathQueryExecuterFactory.PARAMETER_XML_DATA_DOCUMENT, document); JasperRunManager.runReportToPdfFile("D:/dev/projects/lafrance/output/cumul/src/WEB-INF/jasper/warehouseReport.jasper", params); The report generates fine. But when I use the following to generate it: Document document = JRXmlUtils.parse(new InputSource(this.getClass().getResourceAsStream("container.xml"))); JRXmlDataSource dataSource = new JRXmlDataSource(document); JasperRunManager.runReportToPdfFile("D:/dev/projects/lafrance/output/jasper/warehouseReport.jasper", new HashMap(), dataSource); My report has no data in it (all the fields are null or blank). When I debug the second piece of code, I see that before the runReportToFile method is launched, the document is correctly loaded. Any ideas? Thanks François
×
×
  • Create New...