Crystal & C# issue with summary field

I am using crystal reports 11 in a C# project. I have a very simple report where i use the select expert to display records based on a certain criteria ({Command.Show} = “1”.

The records are displayed correctly however the summary field (grand total) also includes the the values for the records which don’t match the criteria ({Command.Show} = "0), the very strange part is this only happens the FIRST time the report is generated in the C# exe, if i exit the report and run it a second time the correct grand total field is shown or if i change the dates and run the report for a different date range the field is also correct.

Maybe it is a C# issue but i have several different reports running in the same exe and don’t experience any other issues aside from this one.


ela3008cbe (BOB member since 2018-07-19)

This is a blind guess.

Is “Save Data with Report” option selected in the report? (Check from File Menu).

If this is selected, unselect and check.


anil.ganga1 :us: (BOB member since 2007-07-04)

Crystal XI or Crystal 2011? What version of Visual Studio and which version of the Crystal SDK?

-Dell


hilfy :us: (BOB member since 2007-04-16)