Symptom
- Formula object with custom Format and "Fixed Symbol" setting
- Custom formula that returns crFixedCurrencySymbol is not fixed
- Instead, the symbol moves around depending on the value length
Environment
- SAP Crystal Reports for Enterprise 4.2
- SAP Crystal Reports for Enterprise 4.3
Reproducing the Issue
- Create a report in Crystal Reports for Enterprise.
- Add a numerical record, or a formula which results in a number, to the body of the report.
- Right click the field and choose "Format Result Object Element..." or "Format Formula Element..."
- Expand the Format tab on the left and choose Currency.
- In "Symbol Format", choose Fixed. Then, click the "fx" to the right to choose a Conditional Formula.
- Return crFixedCurrencySymbol.
- When checking the Page view of the report, the field's currency symbol is not fixed and instead shifts depending on the value length.
- Export the report to PDF and upon opening, see that the currency is also not fixed there.
Cause
Issue is a product defect.
Resolution
Workaround:
- Edit your fields with the problematic currency symbol to have no currency symbol anymore (just a number).
- If you want your currency symbol to only exist on certain lines, create a new Formula.
- In the formula, add logic for when the dollar sign should appear and return your currency symbol as a string accordingly (ex "$").
- If you want the currency symbol to show up for every record (you don't require added logic to specify when the symbol should appear), just create a new text object with your currency symbol in it.
- Place your new formula or text object next to the number value.
- Now, your currency will always be fixed.
Keywords
cr4e, cr, dollar, left, right, justified , KBA , BI-RA-CRE , Crystal Reports for Enterprise , Known Error
Product
SAP Crystal Reports 2016 ; SAP Crystal Reports 2020