Fix dynamic header in RDLC report

SMGNav
Member Posts: 4
So, I am trying to fix a report and keep running into a strange situation.
This report prints multiple Sales Order Confirmations from the Sales Order List.
On this report there is a textbox for a field of concatenated comments on the order.
The initial problem was if the textbox spanned more than a page, the header data was blank.
The header data was pulled directly from textboxes at the end of the tablix that makes up the body.
To fix this, I made the Set/Get functions and put the Set textbox at the beginning of the tablix and changed all the header fields to use GetData.
This seemed to work except in special cases.
The header data is now fine until an order takes up 2+ pages and there is only a few lines on the last page. If this is the case, the header data on the last page will show the data for the next order. The next order will then be fine(except the page number is now one off). Then the rest of the orders will be fine until this happens again.
Also, there is no pattern that I can see that would make the header data wrong on the last page. Most orders are fine, even with only one line of data on the last page.
Any advice on how to fix this would be greatly appreciated.
This report prints multiple Sales Order Confirmations from the Sales Order List.
On this report there is a textbox for a field of concatenated comments on the order.
The initial problem was if the textbox spanned more than a page, the header data was blank.
The header data was pulled directly from textboxes at the end of the tablix that makes up the body.
To fix this, I made the Set/Get functions and put the Set textbox at the beginning of the tablix and changed all the header fields to use GetData.
This seemed to work except in special cases.
The header data is now fine until an order takes up 2+ pages and there is only a few lines on the last page. If this is the case, the header data on the last page will show the data for the next order. The next order will then be fine(except the page number is now one off). Then the rest of the orders will be fine until this happens again.
Also, there is no pattern that I can see that would make the header data wrong on the last page. Most orders are fine, even with only one line of data on the last page.
Any advice on how to fix this would be greatly appreciated.
0
Answers
-
Ex:
Print Three Orders - S0000123 - S0000124 - S0000125
Report Print:
Order #S0000123
Page 1: Header = S0000123
Line data
Page 2: Header = S0000123
Line data
Order #S0000124
Page 1: Header = S0000124
Line data
Page 2: Header = S0000125 --- **Should still be S0000124
1-3 Lines of data
Rest of page is blank
Order #S0000125
Page 1: Header = S0000125
Line Data
Page 2: Header = S0000125
Line Data0 -
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
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