次の方法で共有


LocalReport.ReportPath プロパティ

ローカル レポートのローカル ファイル システムのパスを取得または設定します。

名前空間:  Microsoft.Reporting.WebForms
アセンブリ:  Microsoft.ReportViewer.WebForms (Microsoft.ReportViewer.WebForms.dll)

構文

'宣言
Public Property ReportPath As String
    Get
    Set
'使用
Dim instance As LocalReport
Dim value As String

value = instance.ReportPath

instance.ReportPath = value
public string ReportPath { get; set; }
public:
property String^ ReportPath {
    String^ get ();
    void set (String^ value);
}
member ReportPath : string with get, set
function get ReportPath () : String
function set ReportPath (value : String)

プロパティ値

型: System.String
文字列 値。

説明

ReportPath プロパティを設定すると、ReportViewer コントロールは必要なサブレポートをファイル システムから自動的に読み込みます。

このプロパティを設定すると、ReportEmbeddedResource プロパティの値は無視されます。また、LoadReportDefinition を使用して読み込まれたレポートも無視されます。

関連項目

参照

LocalReport クラス

Microsoft.Reporting.WebForms 名前空間