OWC 11 Unspecified Error 0x80004005

Q

qingshannet

Hi:

I am trying to use OWC11 to create dynamic charts in ASP 3.0.
Env:
Windows 2000 Sp4 English
SQL Server 2000 English
OWC11 English

The codes are:

set ChartSpace1 = server.CreateObject("OWC11.Chartspace") 'OWC.Chart


ChartSpace1.Clear
ChartSpace1.Charts.Add
stCon = "Provider=MSPersist;"
ChartSpace1.ConnectionString = stCon

ChartSpace1.CommandText = fileXmlName
//fileXmlName is a XmlFile generated by record set
ChartSpace1.allowrenderevents = false
ChartSpace1.allowlayoutevents = false

ChartSpace1.displayfieldbuttons = True
ChartSpace1.DisplayFieldList= false
ChartSpace1.displaytoolbar = True
ChartSpace1.DisplayScreenTips = True
ChartSpace1.ChartWrapCount = 1

ChartSpace1.AllowRenderEvents = false

ChartSpace1.hasselectionmarks = false
ChartSpace1.allowpropertytoolbox = false

ChartSpace1.haschartspacelegend = false

ChartSpace1.HasSelectionMarks = false


Set C = ChartSpace1.Constants

'set ChartSpace1.DataSource = xRs

ChartSpace1.SetData c.chDimSeriesNames, 0, "price"
ChartSpace1.SetData c.chDimCategories, 0, "pname"
ChChartDraw,,,ChChartDraw

Line206 ChartSpace1.SetData c.chDimValues, 0, "price1"

with ChartSpace1.Charts(0)

Everytime I got an error saying:
Error Type:
(0x80004005)
Unspecified error
****.asp, line 206

Anyhelp will be appreciated!

Qingshan
 
A

Alvin Bruney - ASP.NET MVP

the code is not correct to load the chart, have a look at one of the
examples provided on the office website

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top