When I pass a value from main report to subreport it is showing as 0 crystal reports. What can be the reason?

时间:2016-11-12 06:00:13

标签: asp.net sql-server vb.net visual-studio crystal-reports

When I pass a value from main report to subreport it is showing as 0 crystal reports. What can be the reason?

On the main report I created a variable

WhilePrintingRecords;
Shared Numbervar x;
x := SUM(tble.value);

On the subreport

Whileprintingrecords;
Shared numbervar x;
x;

x shows 0 no matter what I do :( Help please.

The main report is linked to subreport by an ID .

1 个答案:

答案 0 :(得分:0)

公式在主报告中的位置(哪个部分?标题/组/明细)?

您可以在子报告中使用evaluateAfter({@ formula_name_here})作为公式,这可能有助于解决问题。