chart.export thows com exception
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I am trying to export a chart using the Excel11 object from C#. I can properly open workbooks and read cells, but calling Export() on the Chart object throws a COMException Exception: System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC. at Excel._Chart.Export(String Filename, Object FilterName, Object Interactive) at MBCCS.LeParc.Importer.Importer.GetImageInfoFromWorksheet(Worksheet worksheet) in d:\source\leparc\importer\importer.cs:line 211 The line causing this is: tempChart.Chart.Export(filename, "JPEG", Missing.Value); Please help me how to solve this issue.