我现在用QReport做了一个复合报表,用QRCompositeReport连接了另一个表的数据,我现在想取打印时页的总数,也就是在预览报表时左下角出来的储如:Page 1 of 2我想取后面的这个2,也就是打印页数量,我调用了printer.pageNumber,但不管怎么取都是0,为什么取不出2了,请指点一下了,各位老兄。

解决方案 »

  1.   

    能说得具体一点吗?
    我用:
    quickreport.printer.prepare;
    quickreport.printer.pagenumber;//总页数
    quickreport.printer.pagecount;//当前页数
    但还是不行,得到的数都是1,这怎么回事啊,我预览时看到的是:Page 1 of 2我想要得到的是那个2
    ;现在是不管Page 1 of 1或者Page 1 of 2得到的都是1,请指点一下啊。