PrinterDBGridEH如何打印页号???谁知道???

smiler007 2005-06-13 11:14:30
解决即结贴....
...全文
165 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
耙子 2005-06-14
  • 打赏
  • 举报
回复
Use TPageColontitle to specify parameters of page footer and page header of TPrintDBGridEh component.
TPageColontitle is used in the PageFooter and PageHeader property of TPrintDBGridEh.
In LeftText, CenterText or RightText properties your can specify macros for next values:

&[Page] Substitutes current page
&[ShortDate] Substitutes current date using DateToStr function.
&[Date] Substitutes current date using DateToStr function.
&[LongDate] Substitutes current date using LongDateFormat.
&[Time] Substitutes current date using TimeToStr function.
&[Pages] Substitutes the count of pages. Presence of this macro slows preview of the first page.

EhLib Software
smiler007 2005-06-14
  • 打赏
  • 举报
回复
自己顶!!
没有人用过 PrintDBGridEH 来打印的吗??如何在每页打印页号啊???急急...
winsock2000 2005-06-14
  • 打赏
  • 举报
回复
PrintDBGridEh.PageFooter.CenterText.Text:='第&[Page]页 共&[Pages]页'

2,507

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 数据库相关
社区管理员
  • 数据库相关社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧