Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2008

Tip: Looking for answers? Try searching our database.

Chart.Export throws COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steven - 04 Nov 2003 22:42 GMT
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.GetImageInfoFromWorksheet(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
Steven - 05 Nov 2003 18:59 GMT
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).

> Hi there,
>
[quoted text clipped - 24 lines]
>
> Steven
mjferrer13 - 17 Mar 2008 14:32 GMT
Steven, how you do this, I'm having exactly the same issue with my
application but I not sure I understand how do you fix it.
Can you please tell me more about you're solution?

Thanks, MC

>For anyone who is interested in the solution...
>
[quoted text clipped - 10 lines]
>>
>> Steven
mjferrer13 - 17 Mar 2008 14:32 GMT
Steven, how you do this, I'm having exactly the same issue with my
application but I not sure I understand how do you fix it.
Can you please tell me more about you're solution?

Thanks, MC

>For anyone who is interested in the solution...
>
[quoted text clipped - 10 lines]
>>
>> Steven
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.