Greetings,
Do page first/middle/last properties flow through sub-report or reset inside sub-report?
Suppose sub-report starts on second page of entire document. I have
conditional header in that sub-report. Will it be FirstPage == true or false?
Related question, I was not able to condition header upon being non-first
page. Something like: MiddlePage | LastPage. Any trick to accomplish that?
Thank
Conditional header
Re: Conditional header
Support · Aug 16, 2022Hello,
Yes, if you specify the header and footer for a SubReport then it will be applied to the SubReport level only. Since the SubReport will be in the Details part and it will start from the first page. Header and footer will be added to it as per the conditions specified for the conditional header and footer.
You can only use the conditions specified in the following link here
.
If you continue having an issue, please send the following information to [^a|mailto:support@dynamicpdf.com|opennewwindow|support@dynamicpdf.com^] so we can look into it further.
1. Simple console application which uses static data to recreate the behavior.
2. DLEX file.
3. Output PDF.
4. More information on the issue you are facing on your end( by referring to the output PDF).
5. Exact version and build number of the DynamicPDF DLL file used in your application. You can find this information by right clicking on the DLL file>>Properties>>Details tab>>Product version. Take a screenshot of the Details tab and send it over to us.
Please include a link for this forum in your email to support.
Thanks,
ceTe Software Support Team
Re: Conditional header
Forum member · Aug 16, 2022Hello,
A sub-report is not necessarily on the first page of the printed document.
Suppose the sub-report actually starts on second page of the printed
document and continues for several more pages. There is stuff before and after
the said sub-report. What will be the values of first/middle/last pages
conditions in the sub-report? In other words I'm looking for detailed description
of how those conditions work in main repot and all sub-reports.
Re: Conditional header
Support · Aug 17, 2022Hi,
We tested this on our end and the conditions specified for the SubReport header are working as expected.
If you are adding conditional header to the SubReport then it will be applied to that specific element. If the SubReport starts in the second page then the first layout of SubReport will take up FirstPage as condition , the pages between last and first layout will be applied with MiddlePage and last layout will be set with LastPage header.
If the SubReport data ends in a single page, then LastPage header will be applied.
If you would like to add header for first layout of SubReport then use FirrstPage and then for other pages use MiddlePage and for final data (end) use LastPage and see if it works for you.
Please note that this is specific to SubReport data and not at Report level.
Thanks,
ceTe Software Support Team
Re: Conditional header
Forum member · Aug 22, 2022Hello,
Perhaps a little table would be helpful.
FirstPage MiddlePage LastPage
One page document 0/1 0/1 0/1
Two page document
page 1
page 2
Three or more
page 1
page 2 > n-1
page n
Furthermore, can I combine those in OR condition: (MiddlePage | LastPage) ??
My tests indicate NO, but confirmation would be nice.
Thanks
Re: Conditional header
Support · Aug 23, 2022Hi,
There is not option to use OR condition to add conditional Header and Footer. You could however use the default header/footer for the middle and last pages and a conditional header/footer for the first page. That will achieve the same result.
Thanks,
ceTe Software Support Team