当前位置:网站首页>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
边栏推荐
- 通过base64下载文件(将base64转为blob)
- IPLOOK 5GC与亚信国际CHF(计费功能)对接成功
- 20billion vs 5billion, how much is the "dehydration" little red book worth?
- shell脚本详解(七)——正则表达式、sort、uniq、tr
- Notes on Combinatorics (V) chains in distributive lattice
- Flutter series -dart basic grammar learning
- Flutter2.0运行在web上不同渲染器的问题
- 基于云架构的业务稳定性建设思路
- 贪心之区间问题(4)
- 什么?HomeKit、米家、Aqara等生态也能通过智汀与天猫精灵生态联动?
猜你喜欢

wpa_ State machine migration of supplicant

shell脚本(五)——函数

小波变换db4进行四层分解及其信号重构—matlab分析及C语言实现

STM32 control matrix key, Hal library, cubemx configuration

【建议收藏】消息队列常见的使用场景

session机制详解以及session的相关应用

实践出真知:全网最强秒杀系统架构解密,不是所有的秒杀都是秒杀!!

维智科技亮相西部数博会,时空AI技术获高度认可

Problems of different renderers running on the web with flutter2.0

Weizhi technology appeared in the Western Digital Expo, and the space-time AI technology was highly recognized
随机推荐
IPLOOK和思博伦通信建立长期合作
Error in created hook: “TypeError: Cannot read property ‘tableId‘ of undefined“
K个一组翻转链表[链表拆解/翻转/拼装]
维智科技亮相西部数博会,时空AI技术获高度认可
《被讨厌的勇气》读后感
机械设备行业数字化供应链集采平台解决方案:优化资源配置,实现降本增效
Flutter系列-Dart基础语法学习
组合学笔记(五)分配格中的链
AIOps 智能运维经验分享
Shell script explanation (II) -- conditional test, if statement and case branch statement
Aiops intelligent operation and maintenance experience sharing
Programmer's tool encyclopedia [continuous update]
Screw database document generator
到底使用Thread还是Service?
Flutter系列-flutter路由管理
Notes on Combinatorics (V) chains in distributive lattice
IPLOOK作为O-RAN联盟会员,将共同促进5G产业发展
Implementing Domain Driven Design - using ABP framework - solution overview
贪心之区间问题(4)
Digital commerce cloud: analyze the design idea of B2B2C multi-user mall system architecture, and open a new era of intelligent mall