This is a migrated thread and some comments may be shown as answers.

MultiPage Headers

3 Answers 123 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
PrimePay
Top achievements
Rank 1
PrimePay asked on 14 Dec 2016, 04:02 PM

Hi,

I need To print 2 headers respectively to there data  in a report.

    i.e.:       - print the first Header on every page until it's data section all printed

                 - then break the page and start the next page with the 2nd Header and keep going with the second Header until the end of the report.

I tried binding in the Header Section  and set  

"PrintOnEveryPage" to : PageExec( "DetailSection...and other Items", Count(Fields.TriedManyItemFromDataObject)>0)

but it is returning a 0 all the way. I checked your invoice example to understand the function specially the scope parameter and I see that you are using "lineTotalDataTextBox" as scope in you examples. Could you explain why you are choosing only this textBox ?

 

I will appreciate any help in Advance.

Thanks.

 

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 14 Dec 2016, 05:44 PM
Hello,

Page sections remain the same on each physical page - Page Header and Footer sections.
If you want to combine different layouts, test using a ReportBook, where each new report starts on a new page, and each report's PageSettings properties are preserved in the final document.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
PrimePay
Top achievements
Rank 1
answered on 14 Dec 2016, 08:13 PM

Hi,

Thanks for your response, but ReportBook is not what want. I wonder to know if Is there anyway to use The PageExec Function since Header Section has on it's binding the "printOnEveryPage" propriety, so I can set it to false one details Section has ne Rows to generate.

Thanks.

0
Stef
Telerik team
answered on 15 Dec 2016, 10:51 AM
Hello,

The PrintOnEveryPage property is for report sections like GroupHeader/Footer. These sections are processed and rendered before the paging stage at which you can use the PageExec function - Report Life Cycle.

In general, group sections can be generated based on a grouping criteria and when it changes a new group starts. This allows you to display different information in group sections. Yet group sections are either printed on each page or printed only at the begining of the group of records. To have different behavior, you need to load different reports e.g. ReportBook or Master-Detail scenario (option1, option2) where the sub report is placed in a section following the GroupFooterSection.

Please open a support ticket and send us a runnable demo project that includes the designed report and test data, and an image of the expected result.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
PrimePay
Top achievements
Rank 1
Answers by
Stef
Telerik team
PrimePay
Top achievements
Rank 1
Share this question
or