我有3张表,格式互不相同,但是需要在一张纸上输出(也可能随着内容的增多需要多张纸),请问有没有现成的控件可用啊?这3张表不需要额外处理,直接对应DB中的3个Table

解决方案 »

  1.   

    报表控件就可以了,放三个band就可以了
      

  2.   

    to Zhymax(蓝点) :
      用QuickReport可以吗?但是所有band都只能够对应一个QuickReport的DataSet,怎么同时显示3张表的内容呢?
      用FastReport的TfrCompositeReport好像可以,但是不知道怎么让它把3张表尽量在一页纸上输出(总是每张表占一页)。demo倒是可以,但不知道是怎么实现的,哪位仁兄帮帮忙?谢谢了!
      

  3.   

    graphviz(graphviz),如果你的报表大小是定死的,那么quickrep就绝对可以做的出来
      

  4.   

    在QR的ON NEEDDATA事件中判断。
      

  5.   

    要求是这样:
    假设有三张表:A(a1,a2,a3), B(b1,b2,b3,b4,b5), C(c1,c2)
    希望输出的样子是这样的:
        Table A+B+C                 ------- 标题
     
         Table A                    ------- 标题
       a1  a2  a3                   ------- 表头
       12  33  22 
       34  32  21
       98  45  26     Table B                    ------- 标题
       b1  b2  b3  b4  b5           ------- 表头
       1   1   3   9   3
       4   6   2   6   3
       ……     Table C
       c1  c2
       45  95
       32  21
       ……就是这么简单,唯一要求是这3张表是一个接一个连续输出,而不是每张表都换新页。
      

  6.   

    Composite reports are reports that includes several other reports. For creating composite reports, you should use TfrCompositeReport object . Place it on the form and fill its “Reports” property in run-time by references to other reports. Reports will be printed sequentially. If a reports page have “Print to 
                                                                            ^^^^^^^^ 
    previous page” option, it will be printed at remained space at the last page of
    ^^^^^^^^^^^^^
    the previous report.