Click here to Skip to main content
15,878,959 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i use Stimulsoft Report 2010 ultimate i bind the DataBand1 to a source that has following columns:

1.Date
2.Description
3.State
4.Price

i want to sum the value of 'Price' column in DataBand1 depending on the value of 'State' column in the bottom of all pages(without last page). also i have two 'Text' in the 'PageFooterBand'.

value of first 'Text': Sum of 'Price' column when value of 'State' equals 1 or 3 or 5
value of second 'Text': Sum of 'Price' column when value of 'State' equals 2 or 4 or 6 i write the bellow code and has error,please help me:

For first Text:
C#
cSumIf(DataBand1,DataSource1.Price,DataSource1.State==1||DataSource1.State==3||DataSource1.State==5)

For second Text:
C#
cSumIf(DataBand1,DataSource1.Price,DataSource1.State==1||DataSource1.State==3||DataSource1.State==5)
Posted
Updated 24-Oct-13 7:19am
v3
Comments
thatraja 25-Oct-13 8:57am    
what's the error? always include that in your question.

1 solution

I use Stimulsoft report 2010 ,this is a bug in it and i install stimulsoft 2012 and solve it,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900