how Can I solve this problem?

Stimulsoft Reports.NET discussion
Post Reply
alharbi
Posts: 45
Joined: Wed Sep 05, 2007 1:56 pm
Location: KSA

how Can I solve this problem?

Post by alharbi »

how Can I solve this problem?
I Have Two Tables, the first table contain two fields :
1-TeacherID
2-TeacherName

the second table contain three Fields:
1-TeacherID
2-ArgumentDesc
3-ArgumentValue
(the second table contain More than five ArgumentDesc and values for each record in the first table)
I build A Chart Report .then I set The first Table as Master Table and set the second table as detail table .

the problem is :when I display the report, the chart repeated with every row in the detail sector .

any Idea please.
Stéphane
Posts: 74
Joined: Wed Dec 06, 2006 3:45 am
Location: Paris (France)

how Can I solve this problem?

Post by Stéphane »

Hello,

it must work. You must have a relation between your two tables. Don't forget to set the DataRelation property of the second chart.
If it doesn't work, could you explain with more details how you place your charts : in two master/detail databands ? What are the values of the DataSource and DataRelation properties of your databands and charts ?


Cordially,
Kakone.
alharbi
Posts: 45
Joined: Wed Sep 05, 2007 1:56 pm
Location: KSA

how Can I solve this problem?

Post by alharbi »

thank you very much .

it is working now , i am forget the DataRelation property of the chart.

thank you again .
mihiri
Posts: 13
Joined: Thu Jun 12, 2008 4:43 am
Location: Manama,bahrain

how Can I solve this problem?

Post by mihiri »

would you please explain how you have done this? i am new to this software and need to do the same that you have done, how did you set the data sources and relations and have you put two charts on each band?
thanks in advance.
Mihiri
mihiri
Posts: 13
Joined: Thu Jun 12, 2008 4:43 am
Location: Manama,bahrain

how Can I solve this problem?

Post by mihiri »

i have don the same, even set the relation but still for each row the graph is repeating.how have you set the argument and data values?
alharbi
Posts: 45
Joined: Wed Sep 05, 2007 1:56 pm
Location: KSA

how Can I solve this problem?

Post by alharbi »

1- Insert new chart in the main data band.
2- use the chart wizard to specification the basic propertys (arguments ,values,chart type ..etc ).
3- close the chart wizard then go to the propertys tab of the chart (in the left side of designer).
4- go to Data sectour then specification the data source property and data relation by select your data and relation .
5- run your report .

i hope this help you .
mihiri
Posts: 13
Joined: Thu Jun 12, 2008 4:43 am
Location: Manama,bahrain

how Can I solve this problem?

Post by mihiri »

thank you very much.
but still i have some problems which i hope you would answer kindly.
do u mean we have to add the chart on master? what about the data relation then?the data source is the detail data source, is not it? i want to show in the chart for every master value the sum of costs in detail row . is this what you have done? have you used sum function then? but in data value columns sum function is not allowed, is it?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

how Can I solve this problem?

Post by Edward »

Hello, Mihiri.

It is not necessary to have two bands for this task. Please see the "Chart On Databand" report in 'Demo' sample application in the standard installation of Stimulsoft Reports.Net.

Thank you.
mihiri
Posts: 13
Joined: Thu Jun 12, 2008 4:43 am
Location: Manama,bahrain

how Can I solve this problem?

Post by mihiri »

Thanks a lot to u both . That was helpful.
Post Reply