当前位置:网站首页>Activereports report practical application tutorial (19) -- multi data source binding
Activereports report practical application tutorial (19) -- multi data source binding
2022-06-22 19:33:00 【Interface development Starling】
ActiveReports Support single data source binding and multi data source binding , This article will focus on how to create regional reports and RDL/ Set multiple data sources for page reports .
obtain ActiveReports v16.0 Download the official version
Regional report multi data source binding
ActiveReports The implementation method of multi data source binding in regional reports is in ActiveReports Regional reports (Section) Loading multiple data sources The article has a very detailed introduction .
RDL/ Page report multi data source binding
RDL/ Multiple data source connections can be added to the page report (DataSource), Multiple datasets can be added under each data source (DataSet, The DataSet Is not System.Data.DataSet type , It is GrapeCity.ActiveReports.PageReportModel.DataSet type ). Next, we will add a data source for the report , And add two datasets to the data source ( Categories and products ).
First step : Create a project named PageReport_DataSource_MultiSources.rdlx Page report for :


The second step : from Visual Studio In the menu bar “ View ”->“ Other windows ”->“ Report Explorer V9” Open in ActiveReports Report Explorer , here , You can see “ data source ” node , Right click the node and select “ Add data sources ” A menu item , In the pop-up “ Report data source ” In the dialog box, follow the wizard steps to connect to a Access database , Here's the picture :

Click on “ determine ” Button , Complete data source creation , here , In the report Explorer window “ data source ” A new node named “DataSource1” Child nodes of .
The third step : stay “DataSource1” Right click the node , choice “ Add dataset ” A menu item , In the pop-up dialog box “ Inquire about ” Write the following... In the tab SQL Query statement [Select * from Category ], And then click “ determine ” Button to complete the data set creation operation . After returning to the report resource management window , Click on “DataSet1” node , You can see SQL The query statement returns all the data fields of the query result .


Step four : Repeat step three , Add a name “DataSet2” Data set of , Corresponding SQL The query statement is [Select * from product ] , And then click “ determine ” Button to complete the data set creation operation . After returning to the report resource management window , Click on “DataSet2” node , You can see SQL The query statement returns all the data fields of the query result .

Step five : stay Visual Studio Table controls in the toolbox (Table) Drag to the report design interface , Then click on the table Detail line Cells in , here , It will automatically display DataSet1 and DataSet2 Two data sets , We specify for the first table DataSet1 data source ; Add the second table repeatedly and specify DataSet2 As its data source .


ActiveReports Report control | Download trial
ActiveReports It's one that focuses on .NET Report control of the platform , Full satisfaction HTML5 / WinForm / ASP.NET / ASP.NET MVC / WPF Report design and development work requirements under the platform , As a professional reporting tool for more than 300,000 Developers provide comprehensive report development services .
Reprinted from Grape City
边栏推荐
猜你喜欢
随机推荐
Screw数据库文档生成器
远程访问及控制——SSH远程管理及TCP Wrappers 访问控制
故障分析 | 从 data_free 异常说起
通过base64下载文件(将base64转为blob)
After reading the hated courage
Active Directory用户登录报告
jniLibs. Srcdirs = ['LIBS'] what's the use?
同花顺容易开户么?手机开户安全么?
如何更改Apple Watch上的表盘
Is flush easy to open an account? Is it safe to open a mobile account?
缓存3种方式及原理
集群、分布式、微服务概念和区别
数商云:数字化供应链系统搭建,赋能企业实现物流供应链的优化升级
Notes on Combinatorics (V) chains in distributive lattice
Detailed explanation of session mechanism and related applications of session
YARN笔记
Paopao Mart: empty souls need stories
IPLOOK作为O-RAN联盟会员,将共同促进5G产业发展
ActiveReports报表实战应用教程(十九)——多数据源绑定
Iplook becomes RedHat (red hat) business partner









