Running Sum

Stimulsoft Reports.NET discussion
Chan Kuan Leang
Posts: 74
Joined: Sun May 20, 2007 9:14 pm
Location: Singapore

Running Sum

Post by Chan Kuan Leang »

EDV wrote:Is your variable called 'unit'?

Try changing that name, cause unit is already a member in the StiReport Class.

Marco

Code: Select all

C:\Documents and Settings\Chan Kuan Leang\Local Settings\Temp\fs3mds9m.0.vb(197,0) : error BC30454: Expression is not a method.
C:\Documents and Settings\Chan Kuan Leang\Local Settings\Temp\fs3mds9m.0.vb(197,0) : error BC30800: Method arguments must be enclosed in parentheses.
C:\Documents and Settings\Chan Kuan Leang\Local Settings\Temp\fs3mds9m.0.vb(197,0) : error BC30037: Character is not valid.
Hmm.. I have rename my textbox. But, it comes up with the above errors.
Please help on that.

I created a variable "MySum" int, Default Value = 0
Then in the databand, I have tried putting MySum++; in Before Render or Rendering Events & Before Print, it still comes up with the same errors.
Smile
Chan Kuan Leang
Chan Kuan Leang
Posts: 74
Joined: Sun May 20, 2007 9:14 pm
Location: Singapore

Running Sum

Post by Chan Kuan Leang »

chankl78 wrote:
EDV wrote:Is your variable called 'unit'?

Try changing that name, cause unit is already a member in the StiReport Class.

Marco

Code: Select all

C:\Documents and Settings\Chan Kuan Leang\Local Settings\Temp\fs3mds9m.0.vb(197,0) : error BC30454: Expression is not a method.
C:\Documents and Settings\Chan Kuan Leang\Local Settings\Temp\fs3mds9m.0.vb(197,0) : error BC30800: Method arguments must be enclosed in parentheses.
C:\Documents and Settings\Chan Kuan Leang\Local Settings\Temp\fs3mds9m.0.vb(197,0) : error BC30037: Character is not valid.
Hmm.. I have rename my textbox. But, it comes up with the above errors.
Please help on that.

I created a variable "MySum" int, Default Value = 0
Then in the databand, I have tried putting MySum++; in Before Render or Rendering Events & Before Print, it still comes up with the same errors.
I think I have solve it. After a long research. It is because I am using VB.net in the stimul Report.
So.. I just need to change MySum++ into MySum += 1 and it works in the rendering event.....


:cry: :cry: :cry: After 4 hours of hard work & google.....
Smile
Chan Kuan Leang
Post Reply