Format a string to display only 3 last characters and others as asterisks in RDLC

491 Views Asked by At

I have a requirement where I need to display account number in RDLC such that it displays last 3 characters and all other characters are displayed as '*'. for eg 1234567 needs to be displayed as ****567. I'm passing in dataset containing account number to the RDLC and need to write an expression which will format account number to display 3 last digits and all preceding characters as"*". Can anyone help me with the expression writing for it? I'm very new to writing expression on RDLC.

1

There are 1 best solutions below

0
prabhat On

I figured it out.... I wrote code to format account no with asterisks and called the method in RDLC expression.