Exporting chart to gif in asp.net
I have successfully created a chart through asp.net.
But on exporting it, i get an error:
Exception from HRESULT: 0x800401A8
Exception Details: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800401A8.
Source Error:
Line 79: objchart.SetSourceData(excelwksheet.Range("a1:b" & row - 1), PlotBy:=2)
Line 80: objchart.Location(Where:=2, Name:="sheet1")
Line 81: objchart.Export("d:/inetpub/wwwroot/AprWithDB/images/Chart2" & sessionid & ".gif", Filtername:="GIF")
Line 82: excelObj.Visible = True
Line 83:
The error is fired on line81
Could anyone help!!!!
Any help would be highly appreciated.
:)Cheers..
Spacy
|