Binding OWC Chart to a DataSet? article 303016

R

rockdale

Hi, all

After trial and fail, I realized that you can not binding a
ChartSpace.DataSource to a DataSet of ADO.net. I am using ASP.net 2.0
and OWC11.
From the article 303016
http://support.microsoft.com/default.aspx?scid=kb;en-us;303016. We need
to transform a dataset to a xml.

But with my website has more than 100 chart, do I need to create 100
different MakeData.aspx files? How can I put these 100 different aspx
files into my web. the xslt files I guess I can make the dataset
consistant with the fields.

Or should I just use literal data, loop through the dataset
(datareader), then get 3 arrays (serial, category and values) back,
(seems kind stupid since data is there, and I need to add every field
into a different array without duplicate entries).

Any better idea?

Thanks a lot
-rockdale
 
A

Alvin Bruney [MVP]

Yup, because the ado.net dataset does not implement ilistsource interface.
However, it's pretty trivial to work your way around that. I posted a rough
idea of the code that you can use in another thread a short while ago.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
 
R

rockdale

Hi, Alvin:

Thanks for your reply. Could you forward me the link of your post, I
search ths post in this group by your name but could not find the post
that you are talking about


Thanks
-rockdale
Alvin said:
Yup, because the ado.net dataset does not implement ilistsource interface.
However, it's pretty trivial to work your way around that. I posted a rough
idea of the code that you can use in another thread a short while ago.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------


rockdale said:
Hi, all

After trial and fail, I realized that you can not binding a
ChartSpace.DataSource to a DataSet of ADO.net. I am using ASP.net 2.0
and OWC11.

http://support.microsoft.com/default.aspx?scid=kb;en-us;303016. We need
to transform a dataset to a xml.

But with my website has more than 100 chart, do I need to create 100
different MakeData.aspx files? How can I put these 100 different aspx
files into my web. the xslt files I guess I can make the dataset
consistant with the fields.

Or should I just use literal data, loop through the dataset
(datareader), then get 3 arrays (serial, category and values) back,
(seems kind stupid since data is there, and I need to add every field
into a different array without duplicate entries).

Any better idea?

Thanks a lot
-rockdale
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top