SAP Knowledge Base Article - Public

1553895 - How to display a currency symbol on a numeric field when using the CR SDK for .NET?

Symptom

  • Report is designed with a numeric field
  • For certain data being passed to the report at runtime there is a need to display the Currency Symbol

Resolution

  • Use the following code:
Dim fld As CrystalReports.Engine.FieldObject
fld = ReportDoc.ReportDefinition.ReportObjects.Item("MySubtotal1")
fld.FieldFormat.NumericFormat.CurrencySymbolFormat = [Shared].CurrencySymbolFormat.NoSymbol

Keywords

money dollar , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports XI R2