web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to separate Rupee from cents in Rdlc

(0) ShareShare
ReportReport
Posted on by 95

IMG_5F00_20220916_5F00_153818.jpg

Hello, 

I have the above report to design and I am facing with only this difficulty. How can I separate rupees and cents. I have 2 columns separate in terms of rupees (Rs) and cents (cts).

I want an amount which include cents in it to display in the cts column. Like if I get 200.36, the 200 should display in Rs column and 36 in cts column.

Will be grateful if someone can guide me how to do it!

Thanks in advance

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    You can use some standard functions to cut your values.

    youramount := 200.36;

    message('%1',youramount div 1);

    Answer is = 200

    message('%1',amount * 100) mod 100);

    answer is = 36

  • Beginner Dynamics 365 Business Central Profile Picture
    95 on at

    Hello Mr Nitin.

    Thank you for the reply.

    Gladly if you can tell me where should I write this.

    On trigger pre(report) or in the textbox properties?

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    It should be probably added on Line level, when are actually getting the prices, and use OnAfterGetRecords of that dataitem.

  • Beginner Dynamics 365 Business Central Profile Picture
    95 on at

    Actually I am  customizing a report and I am using the general journal line as the dataitem.

    So, I have not created any table or page.

    I have just created a new report where the dataitem is general journal line

    So in the picture, this is the layout.

    And this report will be added as an action in the payment journal where the amount lcy will be reflected in the column Amount. But the issue here is, I have to find a way to separate the cents and make it display in the cts column

    So in all, I won't get to add it into OnAfterGetRecords because I have not created any page.

    Thanks to help me further.

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    In that case you need to re-design that report, open with Report builder and do the mathematic function in that report it self.

    You can find out those functions when you do the report design, also you can use Expression property to change the values of Text field in RDLC design.

    pastedimage1663332317087v1.png

    Thanks.

  • Suggested answer
    Amit Baru Profile Picture
    3,037 on at

    Hi,

    Pls refer the below link for more clarity 

    https://erpconsultors.com/convert-amount-into-words-in-d365-bc/

    Amit Sharma

    www.erpconsultors.com

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,012 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 986 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 659 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans