Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
General
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
DisplayFormat: printing a + and -
rbuser
May 2007
edited May 2007
in
General
Is there a way to have the format string set so that a + and -
are printed for numeric values?
Todd Cary
Ariste Software
Comments
nicocizik
May 2007
edited May 2007
Hi Todd,
Try entering something like the following as the display format of the
component you are using...
+#,0.00;-#,0.00
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Best Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
rbuser
May 2007
edited May 2007
Nico -
Unfortunately, that puts a "+" in front of zero values e.g.
+0.00. And in another email, I cannot get the OnFormat to compile.
Todd
nicocizik
May 2007
edited May 2007
Hi Todd,
Inside the DetailBand.BeforePrint, you could check if the value is zero and
adjust the output if it is.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Best Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
This discussion has been closed.
Comments
Try entering something like the following as the display format of the
component you are using...
+#,0.00;-#,0.00
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Unfortunately, that puts a "+" in front of zero values e.g.
+0.00. And in another email, I cannot get the OnFormat to compile.
Todd
Inside the DetailBand.BeforePrint, you could check if the value is zero and
adjust the output if it is.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com