I'm writing a report which has two header sections (the data items for the two headers are at the same indentation level). Could someone please tell me how I can force the second header to print on a new page?
I have used the NEWPAGE function in the OnAfterGetRecord trigger and the PrintOnEveryPage property is set to true for the header. I'm now getting the header printed twice on the first page this header is printed.
Could someone please explain why this is? and how I can get around it?
I tried putting the NEWPAGE call in the OnPreSection trigger, but I get the same result. The header prints twice on the first page it appears, first time with no body. After the first page the header only prints once per page as expected.
The page break generated by NEWPAGE is treated exactly like the page breaks that are generated automatically with one exception, footers and headers will be printed in the same way as when an automatic page break occurs, but transport footers and headers are not generated and printed.
Yes definately..I'm very confused. It seems to me you cant use PrintOnEveryPage when using NEWPAGE without getting a duplicate header on the first occurence! Very odd... ](*,)
Comments
Write it on Second Section OnPreSection..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I have used the NEWPAGE function in the OnAfterGetRecord trigger and the PrintOnEveryPage property is set to true for the header. I'm now getting the header printed twice on the first page this header is printed.
Could someone please explain why this is? and how I can get around it?
Many thanks,
Dan
did you try by adding the code in On pre section trigger?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I tried putting the NEWPAGE call in the OnPreSection trigger, but I get the same result. The header prints twice on the first page it appears, first time with no body. After the first page the header only prints once per page as expected.
Thanks
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Thanks.
can you show the sections screenshot of report?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
DataItem1, Header (1)
DataItem1, Header (2)
DataItem1, Header (3)
DataItem1, Header (4)
DataItem1, Body (5)
>DataItem2, Body (1)
DataItem3, Header (1)
DataItem3, Body (2)
Its the header for data item 3 that is causing the problem. The first page it gets displayed gives me:
Header
Header
Body
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
why dont you use Transheader ?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Welcome
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav