By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,530 Members | 891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,530 IT Pros & Developers. It's quick & easy.

Can i display a COM MSChart object in an ASP page?

P: n/a
Hi,

In my webform HTML i have the following code,
but i cannot view and configure this chart control in the code behind class.

In the code behind class i have a reference to this com control but when
i try and add it as a child control of say a panel control then it gives me
a cast error.

Is it possible to display and configure a chart in a web form?
Sample code would be appreciated!

Thanks.

<object class="MSChart20Lib.MSChart" id=mychart1 VIEWASTEXT></object>
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
There are many great ways to create web charts, but the MSChart control
(which was not designed for web applications) would not be near the top of
my list.
Here are some alternatives to get you started:
http://steveorr.net/articles/BarGraphs.aspx
http://msdn.microsoft.com/msdnmag/is...w/default.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"John Blair" <jo********@hotmail.com> wrote in message
news:BM****************@newsfe1-win.ntli.net...
Hi,

In my webform HTML i have the following code,
but i cannot view and configure this chart control in the code behind
class.

In the code behind class i have a reference to this com control but when
i try and add it as a child control of say a panel control then it gives
me a cast error.

Is it possible to display and configure a chart in a web form?
Sample code would be appreciated!

Thanks.

<object class="MSChart20Lib.MSChart" id=mychart1 VIEWASTEXT></object>

Nov 19 '05 #2

P: n/a
Thanks for the feedback....i am aware that i could purchase asp controls to
do this...but i wanted to know if it was possible to use the MSchart COM
object in a web page and if so how. thanks again.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:er****************@TK2MSFTNGP15.phx.gbl...
There are many great ways to create web charts, but the MSChart control
(which was not designed for web applications) would not be near the top of
my list.
Here are some alternatives to get you started:
http://steveorr.net/articles/BarGraphs.aspx
http://msdn.microsoft.com/msdnmag/is...w/default.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"John Blair" <jo********@hotmail.com> wrote in message
news:BM****************@newsfe1-win.ntli.net...
Hi,

In my webform HTML i have the following code,
but i cannot view and configure this chart control in the code behind
class.

In the code behind class i have a reference to this com control but when
i try and add it as a child control of say a panel control then it gives
me a cast error.

Is it possible to display and configure a chart in a web form?
Sample code would be appreciated!

Thanks.

<object class="MSChart20Lib.MSChart" id=mychart1 VIEWASTEXT></object>


Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.