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
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