I am trying to export a chart using the Excel11 object from within C#. I can
properly open workbooks and read cells, but calling Export() on the Chart
object throws the following COMException
Exception: System.Runtime.InteropServices.COMException (0x800A03EC):
Exception from HRESULT: 0x800A03EC.
at Excel._Chart.Export(String Filename, Object FilterName, Object
worksheet) in d:\source\leparc\importer\importer.cs:line 211
The line causing this is:
tempChart.Chart.Export(filename, "JPEG", Missing.Value);
The JPEG filter is registered.
I am trying to export a picture from excel to an external file. What I am doing is creating a new
chart, copying the picture to the chart, then exporting the chart. The
Excel process is running under the ASPNET account.
Any help would be greatly appreciated.