0

我正在使用报告生成器在我的 delphi 代码中打印一些报告。我正在为所有报告设置页脚。但是当我有一些诸如“代理商和广告商同意并承认该电台的广告条款和条件”之类的文字时,它总是会被截断,例如“代理商和广告商同意并承认该电台的广告条款和”。

我的页脚属性是

      object lblStatementFooter: TppLabel
        UserName = 'lblStatementFooter'
        HyperlinkColor = clBlue
        Border.BorderPositions = []
        Border.Color = clBlack
        Border.Style = psSolid
        Border.Visible = False
        Ellipsis = False
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Name = 'Arial'
        Font.Size = 8
        Font.Style = []
        TextAlignment = taCentered
        Transparent = True
        WordWrap = True
        mmHeight = 3979
        mmLeft = 0
        mmTop = 794
        mmWidth = 203200
        BandType = 8

这是我在这里想念的吗?请帮帮我

4

1 回答 1

1

因为页脚是 PrintHeight = phStatic。您不能将属性更改为 phDynamic。

您可以在 FooterBeforePrint 中编写代码,例如

procedure FooterBeforePrint
begin
    if Memo1.Lines.Count >0 then
    begin    
      Footer.Height:= 0.4 * Memo1.Lines.Count;
      Memo1.Height:= Footer.Height;
    end;
end
于 2013-05-06T10:10:48.367 回答