Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

RDLC Report - collapsible report

Posted on by 5,124

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

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

    Hi mbr,

    Thanks for sharing the solution.

  • Verified answer
    mbr Profile Picture
    mbr 5,124 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
    CristianAguerre 145 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?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans