共用方式為


ReportViewer.ServerReport 屬性

在報表檢視器中取得伺服器報表。

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

語法

'宣告
<NotifyParentPropertyAttribute(True)> _
<SRDescriptionAttribute("ServerReportDesc")> _
<PersistenceModeAttribute(PersistenceMode.InnerProperty)> _
<CategoryAttribute("Misc")> _
Public ReadOnly Property ServerReport As ServerReport
'用途
Dim instance As ReportViewer
Dim value As ServerReport

value = instance.ServerReport
[NotifyParentPropertyAttribute(true)] 
[SRDescriptionAttribute("ServerReportDesc")] 
[PersistenceModeAttribute(PersistenceMode.InnerProperty)] 
[CategoryAttribute("Misc")] 
public ServerReport ServerReport { get; }
[NotifyParentPropertyAttribute(true)] 
[PersistenceModeAttribute(PersistenceMode::InnerProperty)] 
[CategoryAttribute(L"Misc")] 
public:
ServerReport^ ServerReport {
    ServerReport^ get ();
}
/** @property */
public ServerReport get_ServerReport ()
public function get ServerReport () : ServerReport

屬性值

包含報表檢視器中伺服器報表的 ServerReport 物件。

範例

請參閱 ServerReport,以取得程式碼範例。

另請參閱

參考

ReportViewer 類別
ReportViewer 成員
Microsoft.Reporting.WebForms 命名空間