就是说我用pagefooter做页汇总,
可是最后一页的数据打不到最后,就有一条pagefooter呀,多难看,有办法移上去吗?

解决方案 »

  1.   

    看看AR的SAMPLES,也许对你的问题解决有所助益
      

  2.   

    AR格式
    ------------------------
    reporthead
    ------------------------
    pagehead
    ------------------------
    grouphead
    ------------------------
    detail
    ------------------------
    groupfooter
    ------------------------
    pagefooter
    ------------------------
    reportfooter
    ------------------------
    由于我要每页汇总,用了pagefooter
    可就得到了上面的结果 ,帮我呀
      

  3.   

    唉,UP到明年这个时候也没用啊!你的记录数是否固定?调整一下大小或纸张设置也可以嘛!要不加些什么没用的点缀装饰也可以呀!
    像信纸一样,非要到底部才叫好看吗?HEAD、FOOT处都可以修饰一下嘛!这并是很重要的技术性问题呀
      

  4.   

    记录数我怎么可能固定呢?
    我在VFP里做到过。所以客户一定要做到呀,没办法吗?
      

  5.   

    兄弟,太可怜了!恨不得帮你做呀,可惜我也很忙!
    不过这个问题解决了,你也就成为AR的专家了!
    你可以这样试试,你一页中显示的记录数是固定的,在显示(或打印)前你肯定知道记录数了,那么也知道会生成多少页了!同时也知道了最后一页的记录数,每条记录所占的高度是一定的,那么就需要在最后一页的DETAIL的高度上下下功夫了,能否自定义最后一页DETAIL的高度以及FOOT的高度,然后你进行汇总(也算一条记录吧)的位置可以进行设定(LEFT、TOP相对于FOOT),如果可以单独一页进行调整的话,你的问题就解决了!!!!
    不知道你的E文学得如何?看看它的ActiveReports Reference也许对你很有帮助的,昨天我进行页码设置就是从中找出来的!
    刚才查找了一下高度索引(HEIGHT),其中有:
    Sets or returns the height of the section in twips.
    好象可以单独进行设置的,你不妨先计算页数:
    n=总记录数/每页记录数+1
    先设置前面n-1页的高度(DETAIL、FOOT)
    再设置最后第n页的高度(DETAIL、FOOT)成功以后要加分哟!!!
      

  6.   

    唉,现在才知道知识就是力量!
    刚才所说的方法真有点笨.....BTW.........
    又多看了两眼REFERENCE,又有了一点启发:
    其实汇总可以作为GROUP FOOTER直接在DETAIL中确定其位置:
    即,假设最后一页记录数为n条(不要说不会计算呀),每条记录高度H
    汇总的TOP位置=该页第一条记录的TOP值+N*H用刚才的HEIGHT可以进行设置,That's ok?
    Have fun!
    ---------------------------附:相关各部分说明------------------------------
    Report HeaderAn ActiveReport can have a report header section that prints at the beginning of the report. It is generally used to print a report title, a summary table, a chart or any information that needs to appear only once at the beginning of the report.Note: A report header can span multiple pages by inserting a page break control within its content.Report FooterAn ActiveReport can have a report footer section that prints at the end of the report.  It is used to print a summary of the report, grand totals or any information that needs to print once at the end of the report.Page HeaderAn ActiveReport can have a page header section that prints once at the top of each page in the report.  It is the first section that prints on the page except when the page contains the report header section.  The page section is used to print column headers, page number, page title or any information that needs to print once at the beginning of each page.Page FooterAn ActiveReport can have a page footer section that prints once at the bottom of each page in the report.  It is used to print page totals, page numbers or any other information that needs to print once at the bottom of each page.Group Header, Group FooterAn ActiveReport can have multiple nested groups; each group has a header and a footer section.  The header section prints before any detail sections in the group.  The footer section prints after all the detail sections in the group.  Group sections are inserted immediately before and after the detail section.
    The number of times that a group section would print depends on how the data is grouped.  ActiveReports will start a new group (Header, Detail, and Footer) for each change in the data that binds the group.DetailThe detail section is the body of the report that prints once for each record in the data source.
      

  7.   

    Height:Description
      Sets or returns the height of the section in twips.
    Data Type
      Single
    Availability
      Design time Read / Write
      Run time Read / Write由上述说明可以知道Height可以在设计或运行阶段进行设置!
      

  8.   

    那在问你一个问题,总页数只能用“n=总记录数/每页记录数+1"得到吗?
    那pages.count 有什么用?怎么用?
      

  9.   

    那在问你一个问题,总页数只能用“n=总记录数/每页记录数+1"得到吗?
    那pages.count 有什么用?怎么用?
      

  10.   

    将最后一页的页码放在Report footer里。
      

  11.   

    当然可以根据pagecount获得页数,Pagecount得到当前ACTIVEREPORT的所有页数,而根据不同的设置可以返回不同的值(当前页码及全部页数)You can add page numbers and page count to your report using the PageCount summary type.  Page numbers are created using a running summary field.
    Add two text fields and a label to your Page Footer section
    Set the following propertiesFirst field
    Name txtPageNumber
    SummaryRunning 2-in all
    SummaryType 4-PageCountLabel
    Name lblOf
    Caption  ofSecond Field
    Name txtPageCount
    SummaryType 4-PageCountYour page footer should look like thisWhen you preview your report, you should get a continuous n of m page counts.  Please note that using the PageCount causes all report sections to be delayed until the report is completed.如果你需要在每页加页码,则可以使用,当然,此处也可以使用其作为一个参数参与计算
      

  12.   

    形如: page 3 of 25
      

  13.   

    谢谢OLD_VB_FAN(蓝星) ,呵呵,终于完成。
    开始给分,大家多有点:)
      

  14.   

    wyo(╰☆╮╰☆╮╰☆╮),我们终于看过了!