你email是多少/?
我有官方教程
我有官方教程
解决方案 »
- spring3 + dwr 怎么能够配置成功
- Error creating bean with name 'sumBo' defined in ServletContext resource [/WEB-I
- javax.servlet.ServletException错误
- 帮忙做两道Java题
- jsp调试问题!
- 项目发布问题
- 有关Java的问题!
- 如何屏蔽CTRL+N功能
- 第一次配置hibernate遇到问题!!
- ssh bibernate
- (我的分快没了)大家帮忙看看吧,我捣鼓一天了,筋疲力尽!!!为什么这个Struts始终徘徊在表单验证这里,不再往下走了,似乎Action的exce
- jsf 在jboss下发布问题,
Subreports need a data source in order to generate their content, just like normal report do.
In the 3.4 Filling Reports chapter of this book we have seen that when filling a report you have to
supply either a data source object or a connection object, depending on that particular report type. That
is if it has an internal SQL query and you want to have it executed to obtain the report data or you
supply the report data yourself.
Subreports behave in the same way and expect to receive the same kind of input when they are being
filled.
You can supply to your subreport either a data source using the <dataSourceExpression> element
or a JDBC connection for the engine to execute the subreport's internal SQL query using the
<connectionExpression> element. These two XML elements cannot be both present at the same
time in a subreport element declaration. This is because you cannot supply both a data source and a
connection for your subreport. You have to decide on one of them and stick to it.
The report engine expects that the data source expression returns a
dori.jasper.engine.JRDataSource object and that the connection expression returns a
java.sql.Connnection object, whichever is present.
You can see how subreports work, if you check the subreport sample.