Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 13th, 2006, 03:01 PM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to rfrancisco
Default Subscript out of range

I'm trying to use the setdata method of the object ChartSpace.
and the error: subscript out of range occurs.

Here goes my code:
Sub inicio()
Dim cht
Dim c
Dim ctr
Dim serie

document.all.ChartDiv.innerHTML = "<CENTER><OBJECT name='WebChart' id='WebChart' height='75%' width='100%' classid='CLSID:0002E556-0000-0000-C000-000000000046'><PARAM NAME='XMLData' VALUE=''></OBJECT></CENTER>"
BI.WebChart.Clear
Set BI.WebChart.DataSource = BI.PivotTable
BI.WebChart.PlotAllAggregates = BI.WebChart.Constants.chPlotAggregatesSeries
set cht = BI.WebChart.Charts(0)
Set c = BI.WebChart.Constants

cht.Type = 6
cht.HasLegend = False
cht.HasTitle = True
cht.Title.Caption = BI.PivotTable.ActiveView.TitleBar.Caption

Call BI.WebChart.SetData(c.chDimSeriesNames, c.chDataBound, c.chPivotColAggregates)
Call BI.WebChart.SetData(c.chDimCategories, c.chDataBound, c.chPivotRows)
Call BI.WebChart.SetData(c.chDimValues, 0, 0)

End Sub

Did anyone have this problem before?? What can I do?????

Thanks for helping

 
Old February 13th, 2006, 08:25 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

That erorr indicates you are referencing an element of an array that does not exist. I can not tell from your code where the error may be occuring

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
"Subscript out of range" in acFormPivotChart jilly Access VBA 0 April 23rd, 2008 08:52 PM
Array, Subscript out of range. koss77 VB How-To 4 August 21st, 2006 09:35 AM
Subscript out of range: '[number: 0]' jim_h Classic ASP Professional 0 February 24th, 2006 07:24 PM
Subscript out of range crmpicco Classic ASP Basics 4 March 22nd, 2005 06:55 PM
Problem of "Subscript out of range " liorlank Classic ASP Components 2 November 26th, 2003 10:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.