fastreport字体自适应_FastReport 自动换行与行高自适应及自动增加空行
設定后即可自動換行及行高自適應。版本號5.6.2
1、masterData:屬性值:stretched?為True
2、Memo設定wordwrap為True ,stretchMode:smMaxHeight
FastReport自動增加空行
1、在masterdata下增加child;
2、在code編寫如下代碼
var
PageLine: integer;//在現在頁列印到第幾行
PageMaxRow: integer =28;//設定每頁列數
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
PageLine := mod PageMaxRow; //對于固定行數這一句代碼是必要的
if (PageLine = 1) and ( > 1) then
Engine.newpage;
Memo45.text:=inttostr(PageLine);
child1.visible := False;
end;
procedure Footer1OnBeforePrint(Sender: TfrxComponent);
var
i: integer;
begin
i := IIF(PageLine = 0, PageMaxRow, PageLine);
child1.visible := True;
while i < PageMaxRow do
begin
i := i + 1;
Memo61.text:=inttostr(i);
Engine.ShowBand(Child1);//印空白表格
end;
child1.visible := False;
end;
begin
end.
總結
以上是生活随笔為你收集整理的fastreport字体自适应_FastReport 自动换行与行高自适应及自动增加空行的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 泻白散的功效与作用、禁忌和食用方法
- 下一篇: 蜂巢的功效与作用、禁忌和食用方法