procedure TReportForm.PrintFooterReport2(Sender: TObject);
begin { 打印报表2的脚注 }
with Sender as TBaseReport do
begin
SetFont('Times New Roman',8);
//调用TbaseReport组件的SetFont方法设置打印的字体和大小
MarginBottom := 0.5;
//设置报表的底部边界宽度
PrintFooter('第' + IntToStr(CurrentPage)+'页',pjLeft);
//打印报表的页号
PrintFooter('2003年2月16日',pjRight);
//打印报表的日期
MarginBottom := 1.0;
end; { with }
end; {打印报表2的脚注}
打印报表的脚注
打印报表脚注示例
最新推荐文章于 2025-06-18 13:20:05 发布
本文介绍了一个打印报表脚注的示例代码,演示了如何使用TBaseReport组件设置字体、边距,并打印页码和日期等信息。
1038

被折叠的 条评论
为什么被折叠?



