Vb.Net Report Viewer在另一个表单上打开各种报告 [英] Vb.Net Report Viewer on another form to open various reports

查看:116
本文介绍了Vb.Net Report Viewer在另一个表单上打开各种报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



我有一个带有列表框的表格。选择记录后,我按一个按钮打开一个特定的报告。

每个按钮代表一个不同的报告。



我想要什么将报表查看器放在不同的表单上,当我按下其中一个按钮时,我希望报表查看器表单显示该特定报表。



我得到了报告设置。

我收到了带有列表框和按钮的表格

我收到了报告查看器的表格



我知道如何写报告查看器。从一个按钮只打开一个特定的报告1报告。

我目前唯一知道的是每个报告都有一个报告查看器(按钮)



这看起来效率很低。



有没有办法只使用1个表单和报表查看器来处理所有报表。

再次按钮不在同一表格上。



感谢任何帮助

解决方案

您好HansWernerOlmDerDritte,



请查看类似问题的解决方案此处 [ ^ ]。



在上面提供的链接中,OP询问是否有多个报告的单个报告查看器,应该在radiobutton列表的帮助下选择一个特定的报告。



我在之前的项目中做了同样的事情,这是一种处理报告的有效方式,而不是拥有多个报表查看器。



希望这可以帮到你。!



谢谢你,

RelicV

Hello

I have a form with a list box. After selecting a record I press a button to open a specific report.
Each button represents a different report.

What I would like to do is to have the report viewer on a different form and when I press one of the buttons I want the report viewer form to show with that particular report.

I got the reports setup.
I got the form with the listbox and the buttons
I got the form with the report viewer

I know how to pen the report viewer. From a button to open only 1 specific report 1 report.
The only was I know at the moment is to have a for with a report viewer for each report(Button)

This seems inefficient.

Is there a way of using only 1 form with a report viewer for all the reports.
Again the buttons are n ot on the same form.

Any Help is appreciated

解决方案

Hi HansWernerOlmDerDritte,

Please take a look at the solution for the similar issue here[^].

In the link provided above, the OP was asking about having a single report viewer for multiple reports and should select a particular report with a help of radiobutton list.

I've done the same in my previous projects and its an efficient way of handling reports instead of having multiple report viewers.

Hope this helps you out.!

Thanks you,
RelicV


这篇关于Vb.Net Report Viewer在另一个表单上打开各种报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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