PictureObject Classe
Représente un objet image dans le rapport.
Pour obtenir la liste de tous les membres de ce type, voir les membres de la classe PictureObject.
System.Object
CrystalDecisions.CrystalReports.Engine.EngineObjectBase
CrystalDecisions.CrystalReports.Engine.ReportObject
PictureObject
[Visual Basic]
Public Class PictureObject
Inherits GraphicObject
Implements IDisposable
[C#]
public class PictureObject : GraphicObject, IDisposable
Remarques
Cette classe permet d'extraire des informations et de définir les options génériques de mise en forme héritées de la classe GraphicObject.
Exemple
[VJ#]
static private PictureObject getPictureObject
(String reportObjectName)
{
PictureObject picture = null;
try
{
picture = (PictureObject)Report.get_ReportDefinition()
.get_ReportObjects().get_Item(reportObjectName);
}
catch (Exception e)
{
return NULL;
}
return picture;
}
[Visual Basic]
Private Function GetPictureObject _
(ByVal reportObjectName As String) As PictureObject
Dim picture As PictureObject
If TypeOf _
(Report.ReportDefinition.ReportObjects. _
Item(reportObjectName)) Is PictureObject Then
picture = _
Report.ReportDefinition.ReportObjects. _
Item(reportObjectName)
GetPictureObject = picture
Else : GetPictureObject = Nothing
End If
End Function
[C#]
private PictureObject GetPictureObject
(string reportObjectName)
{
PictureObject picture;
picture =
Report.ReportDefinition.ReportObjects[reportObjectName]
as PictureObject;
return picture;
}
Configuration requise
Espace de noms CrystalDecisions.CrystalReports.Engine
Assembly CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)
Voir aussi
PictureObject Membres | CrystalDecisions.CrystalReports.Engine Espace de noms
©2005 Business Objects SA. Tous droits réservés.
Business Objects SA. http://www.france.businessobjects.com/ Services de support http://www.businessobjects.com/support/ |