如何将参数从主报表传递到Crystal Reports中的子报表 [英] how to pass parameters from main report to sub report in Crystal Reports

查看:90
本文介绍了如何将参数从主报表传递到Crystal Reports中的子报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在c#中有asp.net网站。



我在哪里我正在使用Crystal Reports。



这里我在主报告中使用子报告。



场景是:

在主报告中,我有1到5个id。根据这个id,我必须生成5个子报告。



在第一行,第一个ID并基于此id生成子报告。



和每页的一个子报告,不论其大小。



i已将我的子报告字段与主要报告相关联。

通过右键单击主报告中的子报告,然后链接它。

但是我没有得到数据,但我可以在结果中看到子报告的数量。 />


任何人都可以帮助我。





谢谢

Hi guys,

I have asp.net website in c#.

Where i'm working on Crystal Reports.

Here i'm using sub reports in my main report.

the scenario is:
In the main report, i have 1 to 5 id's. Based on this id's i have to generate 5 sub reports.

in first row, 1st id & based on this id generate subreport.

& one sub report on each page, irrespective of its size.

i have linked my sub report fields with main reports.
by right clicking on sub report in main report, n linked it.
but i'm not getting data, but i can see no.of sub reports in the result.

Can any one please help me.


Thanks

推荐答案

感谢全能,



我在youtube上观看了一个视频,'如何将参数从主报告传递到子报告'&从视频我得到了如何传递参数,其中显示通过链接从主报告到子报告的字段。

步骤:

1.添加主报告中的子报告。



2.右键点击子报告并点击'Chang e子报告链接..'



3.选择任何字段以链接/过滤子报告中的数据。

----- ---------

每页每个子报告?



在主报告中,如果子报告在详情部分然后,转到部分专家,

选择分页选项卡,检查可见记录,在文本框中输入1,单击确定。



它每页会显示一个子报告。



希望这对其他人也有帮助。



再次感谢全能......
Thanks to Almighty,

I have watched one video on youtube, 'How to pass parameters from main report to sub report' & from the video i got how to pass the parameters, where its shows by linking the fields from main report to sub report.
Steps:
1. add sub report in the main report.

2. Right click on the sub report & click on 'Change SubReport Links..'

3. Select any fields for link/filter your data in sub report.
--------------
Each Sub Report per page?

In the Main Report, if the sub report is in detail section then, go to section expert,
select paging tab, check visible records, in the textbox enter only 1, click ok.

it will display one sub report per page.

hope this will help others, too.

Thanks to Almighty once again...


这篇关于如何将参数从主报表传递到Crystal Reports中的子报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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