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

danlee1000

Members
  • Posts

    1
  • Joined

  • Last visited

danlee1000'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. I am trying to generate a report using both SQL *and* XML data sources in the same Jasper report. The main report uses a SQL data source. I created another report that uses an XML data source, which I am trying to embed as a sub report inside the main report with the following XML statements: <subreport> <reportElement x="19" y="11" width="536" height="102" uuid="c7a452ed-9e89-4d4e-966b-41cb790abef6"/> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRXmlDataSource("/Users/danlee/Downloads/sample-FasDocumentRequestEvent.xml")]]></dataSourceExpression> <subreportExpression><![CDATA["/Users/danlee/FasDocumentRequestReport_XMLTest.jasper"]]></subreportExpression></subreport> I did a preview in iReport Designer. It compiles, but the subreport returns just 'null' instead of a correct value that it normally returns when it was run as a main report. What could be a problem?
×
×
  • Create New...