erika.chinchio Posted April 4, 2023 Share Posted April 4, 2023 hiwhen I use java.io.InputStream to pass xml in subreport in 8.1.1 it returns empty pdf,ex ( <dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).dataSource("/xml/node1/node2/node3/node14/row")]]></dataSourceExpression>)when I use version 8.0.2 it works perfectlythe problem is the same if I use the last version of jasper studio Jaspersoft® Studio 6.20.1 (this behavior is not present in Jaspersoft® Studio 6.18.1 )Thanks in advanceerika Link to comment Share on other sites More sharing options...
Mehak Rajkumar Posted April 4, 2023 Share Posted April 4, 2023 Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times. Link to comment Share on other sites More sharing options...
Mehak Rajkumar Posted April 13, 2023 Share Posted April 13, 2023 Thank you for your patience, we have not forgotten you. We need a little more time with our team of experts to come up with a solution. We will respond back with an answer as quickly as we can. Link to comment Share on other sites More sharing options...
erika.chinchio Posted April 13, 2023 Author Share Posted April 13, 2023 thanks,I await your instructions to solve the problemerika Link to comment Share on other sites More sharing options...
huargo Posted May 9, 2023 Share Posted May 9, 2023 Hi erika,you can try this:<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("/xml/node1/node2/node3/node14/row")]]></dataSourceExpression>I hope it works for you Link to comment Share on other sites More sharing options...
erika.chinchio Posted May 10, 2023 Author Share Posted May 10, 2023 I understand the problem is namespace of xml, I don't know how can I refer a node with namespace using new version of jasperthks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now