?
Solved

How to Use the MS Chart Web Component

Posted on 2001-06-14
7
Medium Priority
?
566 Views
Last Modified: 2011-10-03
I am trying to implement the code found in the MS article "HOW TO: Use Server-Side Charting to Generate Charts Dynamically", which utilizes the Chart Web Component (http://support.microsoft.com/support/kb/articles/Q244/0/49.ASP).  When I run the code, however, I get the error message:  "ActiveX component can't create object: 'OWC.Chart'".

I'm totally new to ASP coding, but is this message not similar to the type of message received when you try to run a Visual Basic ap on a workstation which is missing an .OCX file?

If so, what do I need to install on the web server before I can use this object?  If not, what should I do to get it running?  

0
Comment
Question by:Dreaming_Eagle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 3

Accepted Solution

by:
yas022100 earned 400 total points
ID: 6191769
You need Office 2000, do you have that?
0
 
LVL 3

Expert Comment

by:yas022100
ID: 6191784
Or, You may just install OCX, Msowc.dll
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6191944
The ActiveX object needs to be installed client-side.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 18

Expert Comment

by:mgfranz
ID: 6191961
belay that...
0
 
LVL 3

Expert Comment

by:yas022100
ID: 6191974
Snippet of my code...

     <object id=ChartSpace1 classid=CLSID:0002E500-0000-0000-C000-000000000046
     style="width:50;height:50"
     CODEBASE="/otg/MSOWC.CAB#version=9,0,0,2710"
     VIEWASTEXT></object>

     <Script Language="VBScript">

     Sub Window_OnLoad()

        Dim oChart
        Dim oSeries1, oSeries2
        dim oConst
         
        Set oConst = ChartSpace1.Constants
       
        'Create a new chart in the ChartSpace
        Set oChart = ChartSpace1.Charts.Add
         
        'Add a series of type Column
        Set oSeries1 = oChart.SeriesCollection.Add
        With oSeries1
            .SetData oConst.chDimCategories, oConst.chDataLiteral, _
                     Array("S2T3")
            .SetData oConst.chDimValues, oConst.chDataLiteral, _
                     Array(5485)
            .Type = 1
        End With
         
         'Add a second series of type Line
        Set oSeries2 = oChart.SeriesCollection.Add
        With oSeries2
            .SetData oConst.chDimCategories, oConst.chDataLiteral, _
                     Array("S2T3")
            .SetData oConst.chDimValues, oConst.chDataLiteral, _
                     Array(5315)
            .interior.color = "#FFFFFF"
            .Type = 1
        End With
         
          oChart.HasLegend = false
          oChart.Axes(0).HasTickLabels = False
          oChart.Axes(1).HasTickLabels = False
          oChart.Axes(0).HasMinorGridlines = False
          oChart.Axes(0).scaling.maximum = 11500
         
     End Sub
         
     </Script>
0
 

Author Comment

by:Dreaming_Eagle
ID: 6192159
Bingo!  
Thanks.
0
 
LVL 3

Expert Comment

by:yas022100
ID: 6192370
Bingo!
Glad I could help!

^_^
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question