LocalReport.ReportEmbeddedResource无法正常工作 [英] LocalReport.ReportEmbeddedResource not working
问题描述
我创建了一个Web项目,在这个Web项目中,我创建了一个包含ReportViewer实例的页面。
I have created a Web Project and in this web project I have created a page which contains a ReportViewer instance.
当我执行以下操作时:
ReportViewer1.LocalReport.ReportEmbeddedResource = "ClassLibrary1.Tasks.rdlc";
推荐答案
ReportEmbeddedResource的工作方式是查看加载ReportViewer的同一程序集,如果您的报告是嵌入式的,那么您必须自己加载资源并将其传递给控件,就像您在示例中执行
一样。
The way that ReportEmbeddedResource works is it looks in the same assembly that the ReportViewer is loaded in, if your reports are embedded is a seperate assembly then you will have to load the resource yourself and pass it to the control just as you did in your example.
Matt M
------------------------------------------ --------------------------------------
发布此帖子"按现状"没有保证
Matt M
--------------------------------------------------------------------------------
This posting is provided "AS IS" with no warranties
这篇关于LocalReport.ReportEmbeddedResource无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!