How to fill data in the table when using xml datasource in jasper reports using java? -


i tried finding solutions not find any,and of tables not visible in report. when designing report using ireport gui designer , filling data using java.

i have taken jrxml file following location , and have taken xml data source

    try {         jrxmldatasource jrxmlds = new jrxmldatasource("d:\\bhvika\\inputdata11.xml","/xdata/rows/row");          map params = new hashmap();         params.put(jrxpathqueryexecuterfactory.parameter_xml_data_document, document);          jasperprint print = jasperfillmanager.fillreport("d:\\bhvika\\jasperrpt3mod11.jasper", params,jrxmlds);         jasperexportmanager.exportreporttopdffile(print, "d:\\bhvika\\jasperrpt3mod11.pdf");          jasperviewer.viewreport(print);     } catch (jrexception e) {         e.printstacktrace();     } 

by doing getting report every field getting populated in table there no value coming.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -