共用方式為


ReportObject 類別

提供各類型報表物件泛用屬性的基底類別。

如需這個類型所有成員的清單,請參閱 ReportObject 成員

Object

   ReportObject

      BlobFieldObject

      ChartObject

      CrossTabObject

      DrawingObject

      FieldObject

      GraphicObject

      MapObject

      OlapGridObject

      SubreportObject

      TextObject

[Visual Basic]

Public Class ReportObject

[C#]

public class ReportObject

[C++]

__gc public class ReportObject

[VJ#]

public class ReportObject

註解

透過 ReportObjects 集合的 Item 屬性以索引或名稱來擷取 ReportObject 物件。

範例

下列範例會傳回 ReportObject 物件。

[Visual Basic]

Private Function GetReportObject _ 
(ByVal reportObjectName As String) As ReportObject
   Dim reportObject As ReportObject

   ' 依名稱取得 ReportObject 物件,然後將它傳回來。
   reportObject = _ 
   Report.ReportDefinition.ReportObjects. _ 
   Item(reportObjectName)
   GetReportObject = reportObject
End Function

[C#]

private ReportObject GetReportObject(string reportObjectName) 
{
   ReportObject reportObject;

   // 依名稱取得 ReportObject 物件,然後將它傳回來。 
   reportObject = 
   Report.ReportDefinition.ReportObjects[reportObjectName];
   return reportObject;
}

[C++]

ReportObject* GetReportObject(String* reportObjectName)
{
   ReportObject* reportObject;

   // 依名稱取得 ReportObject,然後將它傳回來。
   reportObject = Report->ReportDefinition->
   ReportObjects->Item[reportObjectName]);
   return reportObject;
}; 

[VJ#]

private ReportObject GetReportObject(String reportObjectName) 
{
   ReportObject reportObject;

   // 依名稱取得 ReportObject 物件,然後將它傳回來。 
   reportObject =
Report.get_ReportDefinition().get_ReportObjects().get_Item(reportObjectName);
   return reportObject;
}

需求

命名空間CrystalDecisions.CrystalReports.Engine

**平台:**Windows 98、Windows NT 4.0、Windows Millennium Edition、Windows 2000

**組件:**CrystalDecisions.Crystalreports.Engine (CrystalDecisions.Crystalreports.Engine.dll)

請參閱

ReportObject 成員 | CrystalDecisions.CrystalReports.Engine 命名空間