To use Excel you must have it installed on the server. This code works for me, getting data from a database, placing it in an Excel Sheet, producing a chart and placing the chart in an ASP page. It is a lot of work but produces a superior chart on your web pages.
Set objExcel = CreateObject("Excel.Sheet"

Set cn = Server.CreateObject("ADODB.Connection"

cn.open "Name","Id", "Pw"
Retrieve = Request.QueryString("Database"
SqlString = "SELECT TO_NUMBER(TO_CHAR(TO_DATE....
Set RS = cn.Execute(SqlString)
MyCnt = 1
Do While not rs.eof
i = myCnt
objExcel.ActiveSheet.Cells(i + 1, 1 ) = "Wk No" & rs("WEEK_NO"

objExcel.ActiveSheet.Cells(i + 1, 2 ) = (int(rs("BUFF_CACHE"

*10))/10
myCnt = myCnt + 1
rs.movenext
loop
objExcel.ActiveSheet.Range("A1:A1"

.Value = "Week Number"
objExcel.ActiveSheet.Range("b1:b1"

.Value = "Buffer Cache"
startstr = "a1:"
endstr = "B" & mycnt
objExcel.ActiveSheet.Range(startstr & endstr).Select
Set XlChartObj = objExcel.Charts.Add
XlChartObj.ChartType = 51
XlChartObj.HasTitle = True
XlChartObj.ChartTitle.Text = Retrieve & " Average Buffer Cache by Week"
XlChartObj.ApplyDataLabels
XlChartObj.Axes(1).TickLabels.Orientation = 90
XlChartObj.Axes(1).TickLabels.font.size = 8
XlChartObj.SetSourceData _
objExcel.Sheets("Sheet1"

.Range("A1:" & endstr),2
filename = server.mappath("/images"
if mid(filename,len(filename),1) <> "\" then
filename = filename & "\"
end if
filename = server.mappath("/images"
if mid(filename,len(filename),1) <> "\" then
filename = filename & "\"
end if
filename = filename & Retrieve & "BuffCache.gif"
objExcel.activechart.export filename, "GIF"
Set objExcel = Nothing
set rs = nothing
The chart is saved as a gif file which is included in a seperate page.
Hope this helps
Good Luck