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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Optimizing an RDLC Report

(0) ShareShare
ReportReport
Posted on by 5,136

I have an RDLC Report that I have designed layout using VS2010.  Everything is working but performance is slow as I am doing a lot of calculations in the VS2010 report layout.  Other than calculating all the fields in the report triggers/functions, is there any way to access the report control values from the layout design as opposed to the datasource values?  E.g., if we have a control called textbox1 and we set its source to be Sum(Fields!SalesAmount.value).  Can I just access the textbox1.value (or similar syntax) as opposed to using its source?  So in another control called textbox2, the source expression will be Textbox1.value.  I know I can do this in a regular VS2010 report.  but for some reason, it's not exposed when accessing the design layout from Dynamics NAV.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Suresh Kulla Profile Picture
    50,245 Super User 2025 Season 2 on at

    Did you use ReportItems!Textbox1.Value ? or are you referring to something else ?

  • Verified answer
    Tina Menezes Profile Picture
    2,582 on at

    Hi,

    Sometimes the processing time of report decreases by reducing the number of dataitems and fields in the report where you select the fields required for the report design. Instead you can created global C/AL variables with datatype as record and use them in your code. Also. to use textbox5 value in another textbox use ReportItems!Textbox5.Value

  • Suggested answer
    RockwithNav Profile Picture
    8,637 Super User 2025 Season 2 on at

    If I have to answer in a nutshell then yes RDLC reports takes a bit more time as compared to classic reports but 2013 Reports has any extended features.

    You need to follow certain rules in this while developing like - 

    1. Check your about this report and be sure that unwanted data's are not coming from NAV side to Visual Studio.

    2. Coding should too be optimised from  NAV Side. No unnecessary loops.

    3. Use GetData Setdata instead of Reportitems!x.value, if you have a more columns to be tweaked like this on header part.

    4. If your report has to be executed every time on a particular filter then dont do any of the above two.

    5. Avoid multiple groupings.

    6. Be sure on all the codes that you write on the Visual Studio Report properties.

    7. Background image is the root of report slowness if you are using this.

    8. I prefer using visibility instead of multiple filters in Visual Studio.

    9. Try to use Labels instead of multiple Text Constants.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans