LocalReport.ReportEmbeddedResource 属性

获取或设置报表嵌入资源的名称。

命名空间:  Microsoft.Reporting.WebForms
程序集:  Microsoft.ReportViewer.WebForms(在 Microsoft.ReportViewer.WebForms.dll 中)

语法

声明
<TypeConverterAttribute("Microsoft.ReportingServices.ReportSelectionConverter, Microsoft.Reporting.Design, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")> _
Public Property ReportEmbeddedResource As String
    Get
    Set
用法
Dim instance As LocalReport
Dim value As String

value = instance.ReportEmbeddedResource

instance.ReportEmbeddedResource = value
[TypeConverterAttribute("Microsoft.ReportingServices.ReportSelectionConverter, Microsoft.Reporting.Design, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public string ReportEmbeddedResource { get; set; }
[TypeConverterAttribute(L"Microsoft.ReportingServices.ReportSelectionConverter, Microsoft.Reporting.Design, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public:
property String^ ReportEmbeddedResource {
    String^ get ();
    void set (String^ value);
}
[<TypeConverterAttribute("Microsoft.ReportingServices.ReportSelectionConverter, Microsoft.Reporting.Design, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>]
member ReportEmbeddedResource : string with get, set
function get ReportEmbeddedResource () : String
function set ReportEmbeddedResource (value : String)

属性值

类型:System.String
一个包含嵌入资源名称的字符串。

注释

设置 ReportEmbeddedResource 属性将导致**“ReportViewer”**控件自动从嵌入资源加载任何所需的子报表。

嵌入报表资源是已存储为调用程序集中的资源的报表定义。

如果已设置 ReportPath 属性,则忽略 ReportEmbeddedResource 属性。它还会导致忽略使用 LoadReportDefinition 加载的报表。

请参阅

参考

LocalReport 类

Microsoft.Reporting.WebForms 命名空间