Transheader / Transfooter in Word Layout (NAV 2016 CU4)

Sebastien_Konsbruck
Member Posts: 30
Hello everyone
I'm in the middle of a project that includes converting RDLC to Word reports.
So far, everything worked like a charm.
However, we've now encountered an issue: there seems to be no native way of doing transfooters and transheaders except for counting the number of lines that word will probably insert on the page before breaking...
Now, we thought: why not create a visual basic code that sums before each page break a specified range in a table (like a conditional {SUM(ABOVE)} ) and inserts the value in a field control?
Does anyone have an idea how to realize such a task?
Thanks in advance and have a great weekend!
Best regards,
Sébastien
I'm in the middle of a project that includes converting RDLC to Word reports.
So far, everything worked like a charm.
However, we've now encountered an issue: there seems to be no native way of doing transfooters and transheaders except for counting the number of lines that word will probably insert on the page before breaking...
Now, we thought: why not create a visual basic code that sums before each page break a specified range in a table (like a conditional {SUM(ABOVE)} ) and inserts the value in a field control?
Does anyone have an idea how to realize such a task?
Thanks in advance and have a great weekend!
Best regards,
Sébastien
0
Best Answer
-
Finally, I found a way to implement Transheader and Transfooter lines into arbitrary Word layout:
https://massivedynamicsblog.wordpress.com/2016/09/22/how-to-implement-carryover-in-wordlayout-reports/New kits on the blog: https://massivedynamicsblog.wordpress.com5
Answers
-
Hey Seb,
Check out this link, this is the only way we handle Trans-header and Trans-Footer in NAV RDLC Reports.
Code.SetRunningTotal is he key for doing this which you will find in the below link. Do pass valid parameters it will work for sure.
https://blogs.msdn.microsoft.com/nav/2011/06/06/transfooter-and-transheader-functionality-in-rdlcssrs-reports-revisited/Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
Hi,
Thanks a lot for your answer. This works well in RDLC.
We were hoping to complete all customer requirements in the new Microsoft Office Word Layout (XML) but this seems to be not feasible at this stage.
If someone happens to find a solution for this, please let me know.
Thanks again.
Best regards,
Sébastien0 -
Unfortunately, SUM(ABOVE) is only working for the entire table colum, which may spread over multiple pages... - There seems to be no way to sum the values printed on a single page, if the number of printed rows per page is unknown. Furthermore, bookmarks within a repeating section content control are deleted, when new rows are added, so this idea is also foredoomed.
It is definitely impossible to implement Transheader/-footer within the docx file directly, since it (normaly) does not contain informations about automatic pagebreaks. This information is only available, after the docx has been opened in Word or rendered for printing. So it might be possible with a Word macro, which has to be automatically executed upon opening/printing or by using Word Automation (or Microsoft.Office.Interop.Word, respectively). At any rate, the lines for the Transheader/-footer have to be put into the Word header/footer, not into the body (same is true for RDLC layout).
So, the first question to answer is: Has anyone implemented Transheader/-footer into Word independently from NAV?New kits on the blog: https://massivedynamicsblog.wordpress.com0 -
Finally, I found a way to implement Transheader and Transfooter lines into arbitrary Word layout:
https://massivedynamicsblog.wordpress.com/2016/09/22/how-to-implement-carryover-in-wordlayout-reports/New kits on the blog: https://massivedynamicsblog.wordpress.com5 -
Hi,
Thanks a lot!
Great! Will try it out.
Best regards
Sebastien0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions