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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

RDLC Report - collapsible report

(0) ShareShare
ReportReport
Posted on by 5,136

I have an RDLC report which I am designing using Visual Studio 2010.  I create 2 groups as I want to be able to collapse Group 1 (top most) at will and/or Group 2(second layer) at will.  The detail section starts off hidden and can be collapsed by Group 2.

To make this happen, in Group 2 properties, I changed the visibility properties to HIDE and togglebyitem=the field from Group 1 where I want to add the plus/minus.  in Detail section, I changed the row group visibility properties to HIDE and togglebyreportitem=the field from Group 2 where I want to add the plus/minus.

When running the report, it works like a charm when in preview.  However, when I save or print to an Excel spreadsheet, it doesn't seem to render properly.  I.e., when I collapse Group 1, I see all the group 2 rows as expected PLUS one record from Detail section.  It shouldn't really display the detail section as this is still uncollapsed at this time.  Then when I collapse Group 2, I see all the detail section plus that 1 duplicated row that was displayed to begin with. 

This is really weird.  I have a feeling this is beyond my control as I don't really control how NAV converts to Excel.  But I am hoping I am doing something wrong to generate this anomaly.  Thoughts?

*This post is locked for comments

I have the same question (0)
  • CristianAguerre Profile Picture
    147 on at
    RE: RDLC Report - collapsible report

    Hi mbr,

    Is true that the automaticaly conversion to Excel of Nav sometimes fail...

    Can you post some pics of the layout and the groups defined?

    And to more help can you post the zoom data when you execute the report?

  • Verified answer
    mbr Profile Picture
    5,136 on at
    RE: RDLC Report - collapsible report

    Hello Cristian, you are so right.  Conversion from Nav RDLC report into Excel sometimes fail.  One needs to be careful with the layout design so as not to confuse the code behind Nav that converts Excel.  So for my purposes of having a two layer collapsible report that can successfully convert to Excel, I had to start over from a fresh copy.  This time, I only specifically set the Visibility = HIDE and toggle by <Field> in the Group Properties ONLY of the given row.  As soon as I did this, the output in the Nav Report as well the Export to Excel was consistent.  I hope this will help others that are scratching their heads when OUTPUT in NAV Report is different from that of the Converted Excel Output.

  • CristianAguerre Profile Picture
    147 on at
    RE: RDLC Report - collapsible report

    Hi mbr,

    Thanks for sharing the solution.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#2
SC666 Profile Picture

SC666 1

#2
SC666 Profile Picture

SC666 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans