报表控件 ActiveReports 中页面报表动态绑定数据源实现方法续:子报表篇

在<a href="http://blog.gcpowertools.com.cn/post/2013/05/17/ActiveReports-PageReport-RunTime-DataSource.aspx">报表控件 ActiveReports 中页面报表动态绑定数据源实现方法</a>博客中,我们介绍了可通过LocateDataSource来对【Dataset Provider】进行动态数据源绑定。在读者反馈中,有人询问,如果我有子报表,请问该如何动态绑定数据源呢?<a href="http://www.grapecity.com.cn/image.ashx?picture=AR_Page_LoadDataSource.gif"><img title="AR_Page_LoadDataSource" style="display: inline" alt="AR_Page_LoadDataSource" src="http://www.grapecity.com.cn/image.ashx?picture=AR_Page_LoadDataSource.gif" width="605" height="270" /></a>

【ActiveReports】使用REST Web Service数据

本文主要讨论如何在ActiveReports 7.0中使用RESTful Web Service所返回的XML数据。为了实现该功能,我们可以在LocateDataSource事件中通过DataSet或Object数据提供器实现运行时的数据绑定。当报表引擎需要加载数据时,会触发LocateDataSource事件。通过REST Web Service获取XML数据之后,我们可以在运行时使用DataSet数据提供器给报表绑定数据源。