Decrease Pageheader heigth
Hi,
I need to change the pageheader size by code in Delphi. PageHeader height is shown as cm values. In code I wrote:
frmReport.FindObject('PageHeader1').Height := 3.60;
frmReport.ShowPreparedReport;
After the previous instructions the 'PageHeader1' seems to become 0, though the PageHeader is still visible and the Column header is drawn over the Pageheader.
How do I change the PageHeader height by code so that the ColumnHeader is printed always after it?
Maurizio
I need to change the pageheader size by code in Delphi. PageHeader height is shown as cm values. In code I wrote:
frmReport.FindObject('PageHeader1').Height := 3.60;
frmReport.ShowPreparedReport;
After the previous instructions the 'PageHeader1' seems to become 0, though the PageHeader is still visible and the Column header is drawn over the Pageheader.
How do I change the PageHeader height by code so that the ColumnHeader is printed always after it?
Maurizio
Comments
measurements are in pixels so use a suitable constant.
pay attention to value used depending upon design you may need to apply
one of the frconstants
fr01cm = 3.77953;
fr1cm = 37.7953;
fr01in = 9.6;
fr1in = 96;
be carefull when changing heights of bands if you set the height of the band
such that the bands height is less than the top of objects contained in the band, you can widow the objects to the page.