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

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:59PM
    when working from delphi
    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.
  • edited 10:59PM
    gordk wrote: »
    when working from delphi
    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.
    Thank you very much, it works. But is there a way to change the Hight at design time from the fast-report designeditor? I tried to set the band height but it remains unchanged.
  • gordkgordk St.Catherines On. Canada.
    edited 10:59PM
    you can set it either in the oi or by draging. unless you are working with an inherited report or designer restrictions set

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.