RDLC报告.Net中的exe外部文件 [英] RDLC reports outside exe in .Net

查看:60
本文介绍了RDLC报告.Net中的exe外部文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

生成的RDLC报告可以在运行时提供给reportviewer吗?
由报告向导生成的RDLC都在exe内,并且每次RDLC发生更改时,都必须构建exe.因此,如果RDLC是单独生成的
通过.Net程序,由Reportviewer从.Net程序内部进行选择.

Can RDLC reports generated be available at runtime to reportviewer ?
RDLC generated by report wizard are inside the exe and everytime there is a change in RDLC , exe has to be build. So, if RDLC is generated separately
by a .Net program,be made to be chosen by reportviewer from inside .Net program.

推荐答案

如果在解决方案资源管理器中突出显示报表,然后按F4,它将带您到报表的属性.看一下Build Action属性.可能将其设置为Embedded Resource,将其更改为Compile,一切都应该很好.
If you highlight your report in Solution Explorer and then hit F4 it will take you to the properties for your report. Take a look at the Build Action property. It is probably set to Embedded Resource, change that to Compile and all should be well.


如果您希望报表不在您的应用程序范围之内,而不是服务器端报表,即 RDL .

RDLC是客户端报告,RDL是服务器端.您可以单独打包它们,或者在需要时从数据库或其他存储库中选择它们.

在此处了解差异以及何时使用RDL或RDLC(少量链接):
讨论1 [讨论2 [讨论3 [ ^ ]

在运行时,将RDL提供给报表查看器以呈现报表.
If you want report to be outside your application than go for server side reports, i.e. RDL.

RDLC''s are client side reports and RDL''s are server side. You can package them separately or pick them from a database or other repository when needed.

Read about differences and when to use RDL or RDLC here (few links):
Discussion 1[^]
Discussion 2[^]
Discussion 3[^]

At runtime, provide the RDL to report viewer to render the report.


这篇关于RDLC报告.Net中的exe外部文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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