共用方式為


LocalReport.ReportPath 屬性

取得或設定本機報表的本機檔案系統路徑。

命名空間:  Microsoft.Reporting.WebForms
組件:  Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)

語法

'宣告
Public Property ReportPath As String
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)

屬性值

類型:String
String 值。

備註

Setting the ReportPath property will cause the ReportViewer control to automatically load any required subreports from the file system.

Setting this property will cause the value of the ReportEmbeddedResource property to be ignored. It also causes the report loaded with LoadReportDefinition to be ignored.

請參閱

參考

LocalReport 類別

Microsoft.Reporting.WebForms 命名空間