刚试了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的情况下,一行就换页:)
哈就是这两个函数,我到在帮助文档上看到它函数说明的下载 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 就是用来控制换行的:)
你这样能实现分页的效果吗?
在详细资料上点格式化节,在后面页新建页打勾
公式中输入:
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的情况下,一行就换页:)
你下下来里面有函数的说明
这个帮助里写的
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
就是用来控制换行的:)
你的方法可以让报表页脚在两页都显示吗 ?
http://dev.csdn.net/develop/article/62/62321.shtm