CommonFieldFormat 클래스
보고서의 모든 필드에 공통으로 사용되는 서식 옵션을 설정할 수 있습니다.
이 형식의 멤버 목록을 보려면 CommonFieldFormat 멤버를 참조하십시오.
System.Object
CrystalDecisions.CrystalReports.Engine.EngineObjectBase
CrystalDecisions.CrystalReports.Engine.ReportObjectProperty
CommonFieldFormat
[Visual Basic]
Public Class CommonFieldFormat
Implements IDisposable
[C#]
public class CommonFieldFormat : IDisposable
예제
다음 예제는 FieldFormat 개체의 CommonFormat 속성을 사용하여 CommonFieldFormat 개체를 검색합니다.
[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;
}
요구 사항
네임스페이스 CrystalDecisions.CrystalReports.Engine
어셈블리 CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)
참고 항목
CommonFieldFormat 멤버 | CrystalDecisions.CrystalReports.Engine 네임스페이스
©2005 Business Objects SA All rights reserved.
Business Objects SA http://www.businessobjects.com/ 지원 서비스 http://korea.businessobjects.com/services/ |