LocalReport.ReportEmbeddedResource 属性

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

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

语法

声明
<TypeConverterAttribute("Microsoft.ReportingServices.ReportSelectionConverter, Microsoft.Reporting.Design, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")> _
Public Property ReportEmbeddedResource As String
[TypeConverterAttribute("Microsoft.ReportingServices.ReportSelectionConverter, Microsoft.Reporting.Design, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")]
public string ReportEmbeddedResource { get; set; }
[TypeConverterAttribute(L"Microsoft.ReportingServices.ReportSelectionConverter, Microsoft.Reporting.Design, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")]
public:
property String^ ReportEmbeddedResource {
    String^ get ();
    void set (String^ value);
}
[<TypeConverterAttribute("Microsoft.ReportingServices.ReportSelectionConverter, Microsoft.Reporting.Design, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")>]
member ReportEmbeddedResource : string with get, set
function get ReportEmbeddedResource () : String
function set ReportEmbeddedResource (value : String)

属性值

类型:String
一个包含嵌入资源名称的 string。

备注

Setting the ReportEmbeddedResource property will cause the ReportViewer control to automatically load any required subreports from an embedded resource.

An embedded report resource is a report definition that has been stored as a resource in the calling assembly.

If the ReportPath property has been set, the ReportEmbeddedResource property is ignored. It also causes the report loaded with LoadReportDefinition to be ignored.

请参阅

参考

LocalReport 类

Microsoft.Reporting.WinForms 命名空间