共用方式為


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
包含內嵌資源名稱的 String。

備註

設定 ReportEmbeddedResource 屬性將會讓 ReportViewer 控制項自動從內嵌資源載入任何必要的子報表。

內嵌報表資源是已在呼叫組件中儲存成一項資源的報表定義。

如果已設定 ReportPath 屬性,就會忽略 ReportEmbeddedResource 屬性。此外,也會忽略使用 LoadReportDefinition 載入的報表。

請參閱

參考

LocalReport 類別

Microsoft.Reporting.WebForms 命名空間