需要在运行时生成.rdlc,以便在Web表单中进行动态报表处理。 [英] Need to generate .rdlc at runtime for dynamic report processing in a web form.

查看:145
本文介绍了需要在运行时生成.rdlc,以便在Web表单中进行动态报表处理。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在哪里可以找到相关信息?我希望用户选择参数。我可以将用户输入的SELECT语句拼凑在一起。我可以使用Oracle DB的结果填充数据集。我认为缺少的最后一部分是如何生成和附加新的.rdlc文件来呈现报告。

Where can i find info on this? I want the user to select parameters. I can piece together the SELECT statement from the user inputs. I can fill a dataset with the results from an Oracle DB. I think the final part missing is how to generate and attach a new .rdlc file to render the report.

感谢任何帮助。

推荐答案

我在新书中讨论了这个策略。

I discuss this strategy in my new book.

虽然可以创建动态的RDLC文件我很少看到这个方法 - 它只是XML而且还有很多工具可以用来管理代码中的XML文件。您是说您不知道用户在报告中想要哪些列 - 用户是要定义报告吗?如果是这种情况,那么您需要查看Report Builder产品(来自Microsoft)。它可能更适合您的需求。但是,如果您可以从一组标准报告中进行选择,那么只需在设计器中布置每个报告并将这些RDLC文件保存在某处即可。这些可以在运行时调用(希望在测试完成后),您可以动态填写报表参数。

While it would be possible to create an RDLC file on the fly I've seen little call for that aapproach--it's just XML and there are tools aplenty to manage an XML file in code. Are you saying that you don't know what columns the user wants in the report ahead of time--that the user is to define the report? If this is the case, then you need to look at the Report Builder product (from Microsoft). It might be better suited for your needs. If, however you can choose from a standard set of reports, then it's just a matter of laying out each report in the designer and saving these RDLC files somewhere. These can be called up at runtime (hopefully after they have been tested) and you can fill in the report parameters on the fly.

hth


这篇关于需要在运行时生成.rdlc,以便在Web表单中进行动态报表处理。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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