M mingliangzhou Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-18 #1 各位, 请教怎样在QREPORT footer band 中显示 :第?页 共?页 信息?
C coolcat3000 Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-18 #2 var nPageCount:integer; begin {...} QuickRep1.Prepare; nPageCount:=QuickRep1.QRPrinter.PageCount; QuickRep1.QRPrinter.Free; QuickRep1.QRPrinter:=nil; {在此修改QuickRep1,实现在页眉或页脚中打印“共 xx 页 第 xx 页” ... } QuickRep1.PreView; {...} End;
var nPageCount:integer; begin {...} QuickRep1.Prepare; nPageCount:=QuickRep1.QRPrinter.PageCount; QuickRep1.QRPrinter.Free; QuickRep1.QRPrinter:=nil; {在此修改QuickRep1,实现在页眉或页脚中打印“共 xx 页 第 xx 页” ... } QuickRep1.PreView; {...} End;
M mingliangzhou Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-18 #3 coolcat3000, 谢谢, 已解决问题。
L l213 Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-18 #4 利用QRSysData和QrExpr可以读到当前的页数。 quickrep的pagenumber可以读到总页数。