您好,欢迎访问一九零五行业门户网

水晶报表分页的问题

在论坛上经常会看到水晶报表分页的问题,这个很好解决。 但是自动插入空白行的问题却一直没有很好的答案, 经过研究找到一个变通的办法来实现了。 '分页 在详细资料上点格式化节,在 后面页新建页 打勾 公式中输入: if onlastrecord then formula = false e
在论坛上经常会看到水晶报表分页的问题,这个很好解决。
但是自动插入空白行的问题却一直没有很好的答案,
经过研究找到一个变通的办法来实现了。
'分页
在详细资料上点格式化节,在后面页新建页打勾
公式中输入:
if onlastrecord then
   formula = false
else
   if recordnumber mod 5 =0 then
      formula = true
   else
      formula = false
   end if
end if
'(basic 语法)
---------------------------------------------------------------------
最后页不足,用空行填充:
新增一个空白详细资料行,格式化此节,在抑制显示(无深化)打勾
公式中输入:
if not onlastrecord  then
    formula = true
else
   if (recordnumber mod 5        formula = true  
   else
       formula = false 
   end if
end if
'(basic 语法)
...接着第二个[ 新增一个空白详细资料行,格式化此节,在抑制显示(无深化)打勾 ]:
公式中输入:
if not onlastrecord  then
    formula = true
else
   if (recordnumber mod 5        formula = true  
   else
       formula = false 
   end if
end if
...接着第三个[ 新增一个空白详细资料行,格式化此节,在抑制显示(无深化)打勾 ]:
公式中输入:
if not onlastrecord  then
    formula = true
else
   if (recordnumber mod 5        formula = true  
   else
       formula = false 
   end if
end if
...(同理第四个,即最后5-1个)
其它类似信息

推荐信息