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

How set page header height by binding

2 Answers 205 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ibraim
Top achievements
Rank 1
Ibraim asked on 02 Mar 2012, 09:53 PM
Hello,

I want to set page header height by binding on my report.
I tryed to use a help function as below:

 

 

        Public Shared Function GetHeaderPageHeight(pageNumber As Integer) As Telerik.Reporting.Drawing.Unit
            If pageNumber = 1 Then
                Return New Unit(10, Telerik.Reporting.Drawing.UnitType.Cm)
            Else
                Return New Unit(20, Telerik.Reporting.Drawing.UnitType.Cm)
            End If
        End Function

 
On binding dialog I set the property Height as my help function, but isn't work.
Please, tell me what I do wrong.

Thanks a lot, excuse my bad english.



2 Answers, 1 is accepted

Sort by
0
Ibraim
Top achievements
Rank 1
answered on 05 Mar 2012, 10:20 PM
Help me please...
0
Elian
Telerik team
answered on 06 Mar 2012, 04:12 PM
Hi Ibraim,

This cannot be achieved as page sections are not related to the report itself, but are relative to the margins of the report's media. In some scenarios you can change the height but that will not benefit the layout in any way. 

Regards,
Elian
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
Tags
General Discussions
Asked by
Ibraim
Top achievements
Rank 1
Answers by
Ibraim
Top achievements
Rank 1
Elian
Telerik team
Share this question
or