我正在使用报表生成器打印一些报告在我的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这是我错过的东西吗?请帮帮我
发布于 2013-05-06 10:10:48
因为页脚是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;
endhttps://stackoverflow.com/questions/16392531
复制相似问题