CommonFieldFormat Classe
Permet de définir des options courantes de mise en forme pour les champs d'un rapport.
Pour obtenir la liste de tous les membres de ce type, voir les membres de la classe CommonFieldFormat.
System.Object
CrystalDecisions.CrystalReports.Engine.EngineObjectBase
CrystalDecisions.CrystalReports.Engine.ReportObjectProperty
CommonFieldFormat
[Visual Basic]
Public Class CommonFieldFormat
Implements IDisposable
[C#]
public class CommonFieldFormat : IDisposable
Exemple
[VJ#]
private CommonFieldFormat getCommonFieldFormat
(String reportObjectName)
{
FieldObject field;
CommonFieldFormat commonFormat = null;
try
{
field =
(FieldObject)Report.get_ReportDefinition()
.get_ReportObjects().get_Item(reportObjectName);
commonFormat = field.get_FieldFormat().get_CommonFormat();
}
catch (Exception e)
{
}
return commonFormat;
}
[Visual Basic]
Private Function GetCommonFieldFormat _
(ByVal reportObjectName As String) As CommonFieldFormat
Dim field As FieldObject
Dim commonFormat As CommonFieldFormat
If TypeOf _
(Report.ReportDefinition.ReportObjects. _
Item(reportObjectName)) Is FieldObject Then
field = _
Report.ReportDefinition.ReportObjects. _
Item(reportObjectName)
commonFormat = field.FieldFormat.CommonFormat
GetCommonFieldFormat = commonFormat
Else : GetCommonFieldFormat = Nothing
End If
End Function
[C#]
private CommonFieldFormat GetCommonFieldFormat
(string reportObjectName)
{
FieldObject field;
CommonFieldFormat commonFormat;
field =
Report.ReportDefinition.ReportObjects[reportObjectName]
as FieldObject;
if (field != null)
{
commonFormat = field.FieldFormat.CommonFormat;
return commonFormat;
}
else return null;
}
Configuration requise
Espace de noms CrystalDecisions.CrystalReports.Engine
Assembly CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)
Voir aussi
CommonFieldFormat 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/ |