AyaNova service management & work order software
AyaNova Support Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


How to account for trailing zeros in reports... Expand / Collapse
Author
Message
Posted 7/3/2006 7:36:43 AM
AyaNova Sales & Support

AyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & Support

Group: Administrators
Last Login: Yesterday @ 5:11:14 PM
Posts: 1,778, Visits: 4,123
If using a SQL Server database, reports that use number data fields may display with 5 trailing zero's because the report template needs to have the data number field formated.

For example, if have entered in 1.5 for labor hours in a workorder, the Detailed Workorder report may display the quantity in the report as 1.50000 instead of 1.5

This is easily fixed by either of the following:

A. Format the number data field to strip the zero's by typing in {0:g29} in the FormatString property for the data field or

B. Format the number data field to use your operating systems Regional settings for numbers digits after decimal by selecting to use the Standard Type n in the FormatString. (i.e if your regional settings is set to display 2 digits after the decimal, setting this will set the data number field to display showing 2 digits even if a whole number  - 1.50 for example)



AyaNova Sales & Technical Support
http://www.ayanova.com
Post #1635
« Prev Topic | Next Topic »

Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: AyaNova Sales & Support

Permissions Expand / Collapse

All times are GMT -8:00, Time now is 8:13pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.094. 13 queries. Compression Disabled.