Crystal reports, sub-reports, and shared variables

后端 未结 3 686
-上瘾入骨i
-上瘾入骨i 2021-01-19 00:39

I have a formula @InitVars in the page header which includes the following, and similar lines:

shared numbervar runWaste:=0;

In Details v,

3条回答
  •  余生分开走
    2021-01-19 00:41

    The problem is that @InitVars is in the page header, not the report header. It is resetting the variable to 0 at the top of every page.

    Moving @InitVars to the report header fixed it so the correct number comes up in the sub-report in Details az.

    I still see some odd behavior when I include the variable in the main report, but since that was just for debugging, not the main target, I don't care.

提交回复
热议问题