Crystal Report的3 Way公式不适用于两页报表

Crystal Report's 3 Way Formula is not working with a Two-Page Report

我正在使用下面的3种方式公式从详细信息部分获取记录,并在报告中为每个组显示在组页脚中。 它工作得很好,但是没有包含或超过一页的小组报告。

公式1:在组标题(初始化)中

1
2
Whileprintingrecords;
stringvar strtitle :="";

公式2:在详细信息部分,(创建条件)

1
2
3
4
5
6
7
8
9
10
11
12
    Whileprintingrecords;

    stringvar strtitle;
    numbervar var;

    if ({@CurrentMonthNew}) ="CLOSED" and ({@PreviousMonthNew}) <>"CLOSED"
    THEN
    strtitle := strtitle   + ChrW(13) + cstr((var := var+1;),0) +"."  +    {spMSR;1.name} +" ceased its operation on" + cstr({@LastDate})

   else if ({@CurrentMonthNew}) <>"CLOSED" and ({@PreviousMonthNew}) ="Not    yet operational"
   THEN
   strtitle := strtitle   + ChrW(13) + cstr((var := var+1;),0) +"."  + {spMSR;1.name} +" started its operation on" + cstr({@FirstDate})

公式3:在页脚组中,显示最终输出

1
2
whileprintingrecords;
stringvar strtitle;

为什么不使用两页或更多页的报表,如何解决此问题? 任何帮助将不胜感激。

更新:

我试图取消选中"每页上的重复组报告",它起作用了,但是组标题丢失了。 我们怎么能同时拥有?


修改组标题中的公式:

1
2
Whileprintingrecords;
If Not InRepeatedGroupHeader Then stringvar strtitle :="";


Arvo的答案是正确的,尽管我在笔记中包含的序列号出现了一些问题。

我发现这种简单的方法可以达到预期的效果

1
1. Place Formula 1 to Group Footer part from the Group Header.

之后,一切正常。