在rdlc中创建多个报告 [英] create Multiple report in rdlc

查看:70
本文介绍了在rdlc中创建多个报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

姓名年度DOB电话

dhilip 1988 56 0900889566

arun 1988 56 6546456



ScName地址区电话

St.Johns班加罗尔班加罗尔0900889566

Govt TNagar Chennai 6546456





我希望在Asp.net的rdlc报告中显示如上格式。数据将来自两个表格。



请注意,我们可以在一份RDLC报告中使用多个报告吗?如果可能,如何创建多个报告?

解决方案

您可以使用supreport它将满足您的需求并且它将更高效,使用名称年DOB电话创建报告,以及带有ScName Address District Phone的子报表,在设置主报表数据源之后,需要在函数(BindReport)中填充子报表数据源,代码如下:



 cryRpt.Subreports(  SubReportName)。SetDataSource(dt2) 


Hi
Name Year DOB Phone
dhilip 1988 56 0900889566
arun 1988 56 6546456

ScName Address District Phone
St.Johns Bangalore Bangalore 0900889566
Govt TNagar Chennai 6546456


I want display like above format in rdlc report in Asp.net. Data Will be come from two tables.

Let me know, Can we use multiple reports in one RDLC Report? If possible, How to create multiple reports?

解决方案

you can use supreport it will be satisfying your need and it will be more efficient, create report with Name Year DOB Phone, and the subreport with ScName Address District Phone, after you set the main report datasource you need to fill the subreport datasource in the function (BindReport) with code like this:

cryRpt.Subreports("SubReportName").SetDataSource(dt2)


这篇关于在rdlc中创建多个报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆