LocalReport.ReportPath 属性

获取或设置本地报表的文件系统路径。

命名空间:  Microsoft.Reporting.WinForms
程序集:  Microsoft.ReportViewer.WinForms(在 Microsoft.ReportViewer.WinForms.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.WinForms 命名空间