mbroad02
asked on
CRYSTAL REPORTS print full dollar field
I want to print a dollar field on a report with the following characteristics:
No dollar sign
No decimal point
print full size of field, up to 7 digits, including leading zeroes (FYI if field contains 56.71 I want it to print as 0005671)
I tried playing around with \the "format field" options, but could not get it to do these things.
Please advise
No dollar sign
No decimal point
print full size of field, up to 7 digits, including leading zeroes (FYI if field contains 56.71 I want it to print as 0005671)
I tried playing around with \the "format field" options, but could not get it to do these things.
Please advise
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I forgot to mention, before you pass your field to this function, you need to replace the decimal i.e. multiply by 100.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
While I appreciate the dhobale answers, james0628's answer was perfect. Worked great and was simple!
Thanks
Thanks
I assume that you're referring to the DisplayString option. It can really simplify things. The only real issue I have with it is that it's something I don't use often, so if I come back and look at a field later that used DisplayString, I may have some trouble figuring out how I formatted that field. :-) The fact that a supposedly numeric field doesn't have a Number tab in the format window could be particularly confusing.
Anyway ...
You're welcome. Glad I could help.
James
Anyway ...
You're welcome. Glad I could help.
James
ASKER