开发者

Records not displayed in Jasper reports properly

I have a XML Datasource in jasper reports.

And a sample xml is given below

<bill>
     <data>Test1</data>
</bill>
<bill>
     <data>Test2</data>
</bill>
<bill>
     <data>Test3<开发者_开发百科/data>
</bill>

Now when I generate Jasper report from Ireport or java program only

Test1 is printed.

I want to print

Test1
Test2
Test3


When you have multiple tags with similar name, you need to use a "List Component" so that jasper reports scrolls through all of them. If you will use simple text box, only the first tag data will be displayed.

For using list component, you need to create a data set first. Then use a list component with sub-dataset as the data set that you created.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜