如何在1个水晶报表查看器中查看多个报表? [英] How to view multipe reports in 1 crystal reports viewer?

查看:178
本文介绍了如何在1个水晶报表查看器中查看多个报表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在一个水晶报告查看器中一次打开2个独立报告?

How can I open 2 seperate reports in 1 crystal reports viewer at a single time?

在预览报告时,我看到我的子报告没有填充它的父控件宽度,如何Subreport宽度填充其父宽度?

And when previewing the report, I see that my subreport doesn't filled its parent control width, how to Subreport width fill its parent width?

我为visual studio 2010使用水晶报表。

I use crystal reports for visual studio 2010.

推荐答案

据我所知,在报表绑定到查看器时,不能在同一个查看器中显示多个报表。现在有一些方法,让它看起来像在一个查看器中显示多个报告:

As far as I know you can't have multiple reports show in the same viewer as the report gets bound to the viewer. Now there are some ways of getting around that and making it look like you have multiple reports showing in one viewer:

1)您可以在页面上附加多个查看者所有工具栏。

1) You could append multiple viewers to your page and suppress all toolbars.

2)您可以将每个报表纳入一个子报表,并将它们放入一个报表中。

2) You could make each of the reports into a subreport and put them into one report.

3)如果报告不是交互式的(即 - 分页,链接,下钻等),你可以为每个报告生成pdf并合并。

3) If the report is not going to be interactive(ie - paging, links, drill down, etc) you could just generate pdf's for each report and merge them.

关于子报表无法正确显示:您需要单独格式化子报表,以使其适合您的网页。只要格式化子报表容器就没有帮助,您必须格式化子报表本身。

And about your subreport not showing correctly: you need to format the subreport seperately to make it fit your page. Just formatting the subreport container will not help, you have to format the subreport itself.

希望有帮助!

Chris

这篇关于如何在1个水晶报表查看器中查看多个报表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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