小妹想请教一个关于PrintDBGridEh打印问题

mengxuanwu 2007-04-06 02:52:54
我放一个DBGridEh,放一个PrintDBGridEh,然后把PrintDBGridEh的属性DBGridEh选为DBGridEh
再放一Button
双击Button写入
PrintDbGrideh1.BeforeGridText.Add('订单');
PrintDBGridEh1.PageFooter.CenterText.Add('第&[Page]页 共&[Pages]页');
PrintDBGridEh1.Preview;
可运行时,点击button后出来打印预览,如果我不打印,关闭打印预览再点击button,这时打印预览上就有两行"订单"和"第1页共2页"。请问要怎样设置,如果出现这种操作而只显示一行呢?小妹先谢谢各位大哥了。
...全文
377 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
mengxuanwu 2007-04-09
  • 打赏
  • 举报
回复
谢谢szto2003(dotnet);SmartyIdiot(情菡) 啦!
lijinghe1()看到什么了??
SI 2007-04-08
  • 打赏
  • 举报
回复
如楼上的,先清除
PrintDbGrideh1.BeforeGridText.Clear;//添加
PrintDbGrideh1.BeforeGridText.Add('订单');
PrintDBGridEh1.PageFooter.CenterText.Clear;//添加
PrintDBGridEh1.PageFooter.CenterText.Add('第&[Page]页 共&[Pages]页');
PrintDBGridEh1.Preview;
szto2003 2007-04-08
  • 打赏
  • 举报
回复
先clear在add
lijinghe1 2007-04-06
  • 打赏
  • 举报
回复
问题不会,进来看小妹的
mengxuanwu 2007-04-06
  • 打赏
  • 举报
回复
晕,不帮我解决问题,好什么好啊?
lijinghe1 2007-04-06
  • 打赏
  • 举报
回复
小妹你好

5,928

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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