Hi @Bala Narasimha Challa ,
I'm sorry that C# is not in the scope of my ability, but if you want to add code to the report (SSRS), you could refer to the following information:
In any expression, you could call your own custom code. You could provide code in the following two ways:
- Embed code written in Visual Basic directly in your report. If your code refers to a Microsoft .NET Framework that is not Math or Convert, you must add the reference to the report. For more information, see Add an Assembly Reference to a Report (SSRS). For more information about other references you can make from your code, see Custom Code and Assembly References in Expressions in Report Designer (SSRS).
- Provide a custom code assembly by using the .NET Framework. If you provide a custom assembly, you must install it on both the computer where you author the report and the report server where you view the report. For more information, see Using Custom Assemblies with Reports.
To add embedded code to a report
- In Design view, right-click the design surface outside the border of the report and click Report Properties.
- Click Code.
- In Custom code, type the code. Errors in the code produce warnings when the report runs.
Best Regards,
Joy
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.