Format Currency in a Visual Studio Report

Votuc
Member Posts: 206
I redesigned a Sales Invoice report in Visual Studio. It seems to be functioning correctly but the totals and other textboxes that contain currency needs to be formatted with 2 decimal places. Right now it is all integer numbers. How do I do this? I have looked under properties everywhere but I do not see anything that changes the format of the number. :-k
0
Comments
-
In the RDLC designer you should go to the text box you added. If you total field was called MyField and was of type decimal, then there will be an extra field in the data set called MyFieldFormat, that would contain the decimal information, so on the Format property of the text box you would add the value from the data set: =Fields!MyFieldFormat.Value
BR
Torben“This posting is provided "AS IS" with no warranties, and confers no rights.”0 -
I looked through the data sources (on left in Visual Studio) and I replaced
Sales_Invoice_Line_Amount
with
Sales_Invoice_Line_AmountFormat AKA "=First(Fields!VATAmountLine__VAT_Amount__Control117Format.Value)"
Now when the invoice prints, it shows this:
#,##0.00
I tried to expand the width of the table column but it still shows the same (#,##0.00).0 -
The properties on that particular text box should be following:
Format: =Fields!Sales_Invoice_Line_AmountFormat
Value: =Fields!Sales_Invoice_Line_Amount
Format field Sales_Invoice_Line_AmountFormat contains the decimal information, like what you see: #,##0.00
Value should then still be your decimal value: Sales_Invoice_Line_Amount
BR
Torben“This posting is provided "AS IS" with no warranties, and confers no rights.”0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions