473,378 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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

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
2 1999
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gerhard Swart | last post by:
Good Morning, I have a licensed .Net product. Meaning I can develop and deploy my projects. I want to use MSChart in my latest project. Now I am not sure about the licensing of MSChart. As far...
1
by: arc | last post by:
My web application is using MSChart for reporting. (until i port it to some decent reporting tool) How to make sure all the web clients (IE atleast) have MSChart on their system to view these...
0
by: Alejandro Reyero | last post by:
Hi all... I'm trying to change a MSChart that's embebbed on a Powerpoint template and i'm starting to get nervous :-) It seems that i'm able to call just one method/setter, the one called...
2
by: andrew | last post by:
I have an application that requires graphical output. I have added a MSChart to the application and want to be able to print this out. I have a form which allows me to print, and zoom in etc for...
0
by: Z | last post by:
Turns out that twipstochartpart actually does do what I thought and it is not broken. I kept getting errors trying to use it as it was shown in the docs. The docs were the problem! From the...
0
by: clashway | last post by:
It took me so long to figure this out, I thought I would share it. This prints an MSChart using the metafilepict format after copying the chart to the clipboard. This provides a high-resolution...
4
by: j2flk1234 | last post by:
I finally figured out how to use MSChart, one thing I was wondering was whether it is possible to have an x y and z axis using this chart?
1
by: ckkwan | last post by:
Hi All, I am trying to use mschart20 in my aspx web page created using VS2003. I have inserted code below into the <fromsection. <OBJECT classid="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.