Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.dotnet.languages.csharp,microsoft.public.excel.interopoledde,microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Chart.Export throws COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC.

Hi there,

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.GetImageInfoFromWor ksheet(Worksheet
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 in excel. What I am doing is creating a new
chart, copying the picture to the chart, then exporting the chart. The
Excel.exe process is running under the ASPNET account.

Any ideas would be greatly appreciated.

Thanks,

Steven


  #2   Report Post  
Posted to microsoft.public.dotnet.languages.csharp,microsoft.public.excel.interopoledde,microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Chart.Export throws COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC.

For anyone who is interested in the solution...

The problem was that the ASPNET user account didn't have access to the MSI
Installer COM object. What was happening is that the .Export() method
searches the HKCU registry key for available graphic filters. Because the
ASPNET user is not an interactive user, no user profile had been created for
it, and calling the .Export() method prompted MSI to create the profile
(including the HKCU hive).


"Steven" wrote in message
...
Hi there,

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.GetImageInfoFromWor ksheet(Worksheet
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 in excel. What I am doing is creating a

new
chart, copying the picture to the chart, then exporting the chart. The
Excel.exe process is running under the ASPNET account.

Any ideas would be greatly appreciated.

Thanks,

Steven




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart.Export throws COMException (0x800A03EC) Benchmark Developmer Charts and Charting in Excel 0 August 30th 07 05:40 PM
Exception from HRESULT: 0x800A03EC nano2k New Users to Excel 0 July 21st 06 12:15 PM
Exception from HRESULT: 0x800AC472 [email protected] Excel Discussion (Misc queries) 0 May 30th 06 09:01 PM
Error 0x800A03EC trying to set range value mdengler New Users to Excel 2 March 1st 06 01:22 PM
Exception HResult: 0x8007FA08 (VB.net) prashanth Kotha Excel Programming 0 August 20th 03 07:27 PM


All times are GMT +1. The time now is 11:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"