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

mazen.doha

Members
  • Posts

    2
  • Joined

  • Last visited

 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 mazen.doha

  1. javier can you post the code you used? Thanks
  2. Hi, Can you please post the code that you used in order to make it work? I've been trying to add the following DefaultJasperReportsContext context = DefaultJasperReportsContext.getInstance();JRPropertiesUtil.getInstance(context).setProperty("net.sf.jasperreports.xpath.executer.factory", "net.sf.jasperreports.engine.util.xml.JaxenXPathExecuterFactory");[/code]But nothing is changing (even if I put "bla bla bla" instead of "net.sf.jasperreports.engine.util.xml.JaxenXPathExecuterFactory") here's the code I'm using private JasperPrint getJasperPrintInstance(JasperReport report) throws JRException, NamingException, SQLException { JasperPrint jasperPrint = null; DefaultJasperReportsContext context = DefaultJasperReportsContext.getInstance(); JRPropertiesUtil.getInstance(context).setProperty("net.sf.jasperreports.xpath.executer.factory", "net.sf.jasperreports.engine.util.xml.JaxenXPathExecuterFactory"); if (dataSource == null) { jasperPrint = JasperFillManager.fillReport(report, this.reportParams, connection); } else { jasperPrint = JasperFillManager.fillReport(report, this.reportParams, new JRBeanCollectionDataSource(getDataSource())); } return jasperPrint;}[/code]
×
×
  • Create New...