添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
沉着的作业本  ·  windows | Tags | 云朴·  1 年前    · 
火星上的冲锋衣  ·  java - Workarounds ...·  1 年前    · 
彷徨的酱牛肉  ·  Typescript Keyof Type ...·  1 年前    · 

Stimulsoft Business Intelligence System | Forum

Business Intelligence Tool from Stimulsoft. Software for dashboards and reports. Reporting tools for any platform.

Add a variable of type int to the report, start value is 0, lets say it is called MySum
Edit the RenderingEvent of the databand and add
MySum++;
Now you can print this sum in the databand:
{this.MySum}
I hope that helps.
Marco
Add a variable of type int to the report, start value is 0, lets say it is called MySum
Edit the RenderingEvent of the databand and add
MySum++;
Now you can print this sum in the databand:
{this.MySum}
I hope that helps.
Marco Thanks. It helps.
What about in GroupheaderBand?? Is it the same?
I have test it in groupheaderband, but instead of appearing 1,2,3... it appears as 1,2,5,13 & so on.
Thanks.
Correct berhaivor. The variable increments by on for every data row.
For use in Group Headerband, you need a second variable MySumGroup and you should you the rendering event of the group for the new variable.
Thanks, Marco
EDV wrote: Correct berhaivor. The variable increments by on for every data row.
For use in Group Headerband, you need a second variable MySumGroup and you should you the rendering event of the group for the new variable.
Thanks, Marco
Thanks for your help.
But, i seems not able to get the desired results.
I have try as below
Add a variable of type int to the report, start value is 1, & named it as MyGroupSum
Edit the RenderingEvent of the GroupHeaderBand and add
MyGroupSum++;
In the GroupHeaderBand:
{this.MyGroupSum}
But, the result is still the same... 1, 3, 4, 5....
Can you help on this? Thanks
Hmm, it seem that the event is called every timer, even if the Band is not printed.
I would try BeforePrint of the groupband or
BeforePrint of the text component inside the group band.
Let me know if it works..
Marco
EDV wrote: Hmm, it seem that the event is called every timer, even if the Band is not printed.
I would try BeforePrint of the groupband or
BeforePrint of the text component inside the group band.
Let me know if it works..
Marco
Thank you so much!!!
It is working now.!! Finally!!! :cry:
:biggrin:
I have to to create the running sum again in the databand. But I failed using the same method as below in the post.
I do not know what wrong's with it.
It keeps giving errors as below

Code: Select all

 Exception Details: System.Exception: C:\Documents and Settings\Chan Kuan Leang\Local Settings\Temp\d-gnyqzn.0.vb(57,0) : warning BC40004: variable 'Unit' conflicts with property 'Unit' in the base class 'StiReport' and should be declared 'Shadows'.C:\Documents and Settings\Chan Kuan Leang\Local Settings\Temp\d-gnyqzn.0.vb(201,0) : error BC30454: Expression is not a method.C:\Documents and Settings\Chan Kuan Leang\Local Settings\Temp\d-gnyqzn.0.vb(201,0) : error BC30800: Method arguments must be enclosed in parentheses.C:\Documents and Settings\Chan Kuan Leang\Local Settings\Temp\d-gnyqzn.0.vb(201,0) : error BC30037: Character is not valid.
Please help me on that.
Is your variable called 'unit'?
Try changing that name, cause unit is already a member in the StiReport Class.
Marco
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.
  • ↳   Stimulsoft Reports.BLAZOR
  • ↳   Stimulsoft Reports.ANGULAR
  • ↳   Stimulsoft Reports.AVALONIA
  • ↳   Stimulsoft Reports.PYTHON
  • ↳   Stimulsoft Reports.JAVA
  • Dashboards
  • ↳   Stimulsoft Dashboards.WEB
  • ↳   Stimulsoft Dashboards.WIN
  • ↳   Stimulsoft Dashboards.JS
  • ↳   Stimulsoft Dashboards.PHP
  • ↳   Stimulsoft Dashboards.BLAZOR
  • ↳   Stimulsoft Dashboards.ANGULAR
  • ↳   Stimulsoft Dashboards.PYTHON
  • Forms
  • ↳   Stimulsoft PDF Forms
  • Business Intelligence
  • ↳   Stimulsoft BI Cloud
  • ↳   Stimulsoft BI Designer
  • ↳   Stimulsoft BI Server
  • Public
  • ↳   Talks
  • ↳   Stimulsoft Reports.Flex
  • ↳   Stimulsoft Reports.UWP
  • ↳   Stimulsoft Reports.Silverlight
  •