水晶报表打印怎么控制行数,让一页里只能打3行数据,超过就换页。还有套打怎么做啊?急死了,兄弟帮忙啊 

解决方案 »

  1.   

    参阅:http://blog.csdn.net/landlordh/archive/2005/02/05/281590.aspx
      

  2.   

    请问 yitiaocheng_10(年华无眠):
    你这样能实现分页的效果吗?
      

  3.   

    刚试了landlordh() 给的这个blog里的方法
    在详细资料上点格式化节,在后面页新建页打勾
    公式中输入:
    if onlastrecord then
       formula = false 
    else 
       if RecordNumber mod 5 =0 then
          formula =true
       else
          formula =false
       end if
    end if
    '(BASIC 语法)
    你把 if RecordNumber mod 5 = 0 then 该为 3 = 0
    应该是3行换页,我试了下 1=0的情况下,一行就换页:)
      

  4.   

    哈就是这两个函数,我到在帮助文档上看到它函数说明的下载 http://support.crystaldecisions.com/updates 并搜索 cr8_formularef.zip
    你下下来里面有函数的说明
    这个帮助里写的
    OnLastRecord
    Basic and Crystal syntax.
    Returns
    Boolean
    Action
    Returns TRUE when the current record being evaluated is the last record in the report.
    RecordNumber
    Basic and Crystal syntax.
    Returns
    Whole Number
    Action
    RecordNumber returns the current record number.
    Typical uses
    You can use this function in creating a record selection formula to print some records and exclude others.我e文太烂用金山看的哈
    如果你不想用basic用crystal语法
    把formula去掉就可以了
    if onlastrecord then 
        false
    else
    if RecordNumber mod 2 =0 then
          true
       else
          false
    就是用来控制换行的:)
      

  5.   

    zzmdegm(剑心):
    你的方法可以让报表页脚在两页都显示吗 ?
      

  6.   

    看看这个
    http://dev.csdn.net/develop/article/62/62321.shtm