Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OWC windows version?

Status
Not open for further replies.

tictaclam

Programmer
Jan 8, 2004
47
US
Hi
I am graphing using OWC from vbscript. The network where this will be accessed has a mix of XP machines and NT 4.0 machines. I have been developing this charting on my XP machine and it works great. However if i try to access the same page from an NT machine i get the error:
Object doesn't support this property or method 'ChartSpace1.Charts'

Does this have to do with the fact that it's not XP let me konw below is my code:
Code:
 <object id=ChartSpace1 classid=CLSID:0002E500-0000-0000-C000-000000000046 style="width:100%;height:350"></object>
<script language=vbs>
    
    Dim  c        
    Dim val(2)
    Dim years(2)
    val(0) = 1
    val(1) = 2
    val(2) = 3
    years(0)=1999
    years(1)=2000
    years(2)=2001 
    

    ' ChartSpace1.Clear
    ChartSpace1.Charts.Add
    ChartSpace1.Charts(0).SeriesCollection.Add
   
    
    Set c = ChartSpace1.Constants
    ChartSpace1.Charts(0).SeriesCollection(0).SetData c.chDimCategories, c.chDataLiteral, years

    ChartSpace1.Charts(0).SeriesCollection(0).SetData c.chDimValues, c.chDataLiteral, val
            

    ChartSpace1.Charts(0).Type = c.chChartTypeLineMarkers'chChartTypeBarClustered
    ChartSpace1.Charts(0).HasLegend = False
    ChartSpace1.HasChartSpaceTitle = True

    ChartSpace1.Charts(0).Axes(c.chAxisPositionBottom).hastitle=True
    ChartSpace1.Charts(0).Axes(c.chAxisPositionBottom).title.caption="Years"

    
    ChartSpace1.Charts(0).Axes(c.chAxisPositionLeft).hastitle=True
   
    ChartSpace1.Charts(0).SeriesCollection(0).DataLabelsCollection.Add        
      
       
       
</script>
 
I can't think of an OS issue here.

The client machines should only require later versions of IE and the matching version of Office. It is possible you don't have the OWC installed even if Office is installed though.

The components can be deployed via the web, etc. using a CAB file referenced in the page as I recall, but you still need the appropriate Office license for clients even if Office isn't installed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top