By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,890 Members | 1,115 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,890 IT Pros & Developers. It's quick & easy.

Is HRESULT a bug or an error?

P: n/a
KC
Is this

Exception from HRESULT: 0x800401A8

an error or a bug? I've been trying to build a chart in Excel through VB.net
(which isn't documented) so I'm running completely blind. What examples I
have found are from VB6 which doesn't convert well. When I do try a new
piece of code like:

oChart.Legend.Position = Excel.XlLegendPosition.xlLegendPositionBottom

(which sets the legend in a chart at the bottom of the chart) that is
syntactically correct in VB.net, but crashes at run-time, I'll get errors
like:

Exception from HRESULT: 0x800401A8.

Extremely frustrating.

Ken
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi,

http://msdn.microsoft.com/library/de...VSTExlchrt.asp

Ken
------------------
"KC" <yo*@dontneed.this> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
Is this

Exception from HRESULT: 0x800401A8

an error or a bug? I've been trying to build a chart in Excel through VB.net
(which isn't documented) so I'm running completely blind. What examples I
have found are from VB6 which doesn't convert well. When I do try a new
piece of code like:

oChart.Legend.Position = Excel.XlLegendPosition.xlLegendPositionBottom

(which sets the legend in a chart at the bottom of the chart) that is
syntactically correct in VB.net, but crashes at run-time, I'll get errors
like:

Exception from HRESULT: 0x800401A8.

Extremely frustrating.

Ken

Nov 21 '05 #2

P: n/a
KC
Thanks.

I think I figured out the HRESULT. It's an error coming from Excel in my
case, but VB just can't *read* it and just shows the hexadecimal number for
it.

I also found another great semi-non-trivial explanation for inserting a
chart in Excel through VB.net for all who are interested:

http://www.vbcity.com/forums/topic.asp?tid=58714

Ken
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,

http://msdn.microsoft.com/library/de...VSTExlchrt.asp
Ken
------------------
"KC" <yo*@dontneed.this> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
Is this

Exception from HRESULT: 0x800401A8

an error or a bug? I've been trying to build a chart in Excel through VB.net (which isn't documented) so I'm running completely blind. What examples I
have found are from VB6 which doesn't convert well. When I do try a new
piece of code like:

oChart.Legend.Position = Excel.XlLegendPosition.xlLegendPositionBottom

(which sets the legend in a chart at the bottom of the chart) that is
syntactically correct in VB.net, but crashes at run-time, I'll get errors
like:

Exception from HRESULT: 0x800401A8.

Extremely frustrating.

Ken

Nov 21 '05 #3

P: n/a

Is this

Exception from HRESULT: 0x800401A8

an error or a bug? I've been trying to build a chart in Excel through VB.net
(which isn't documented) so I'm running completely blind. What examples I
have found are from VB6 which doesn't convert well. When I do try a new
piece of code like:

oChart.Legend.Position = Excel.XlLegendPosition.xlLegendPositionBottom

(which sets the legend in a chart at the bottom of the chart) that is
syntactically correct in VB.net, but crashes at run-time, I'll get errors
like:

Exception from HRESULT: 0x800401A8.

Extremely frustrating.

Sami


User submitted from AEWNET (http://www.aewnet.com/)
Nov 21 '05 #4

P: n/a
"Guest" <Guest@aew_nospam.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...

Is this

Exception from HRESULT: 0x800401A8

an error or a bug? I've been trying to build a chart in Excel through
VB.net
(which isn't documented) so I'm running completely blind. What examples I
have found are from VB6 which doesn't convert well. When I do try a new
piece of code like:

oChart.Legend.Position = Excel.XlLegendPosition.xlLegendPositionBottom

(which sets the legend in a chart at the bottom of the chart) that is
syntactically correct in VB.net, but crashes at run-time, I'll get errors
like:

Exception from HRESULT: 0x800401A8.

Extremely frustrating.

Sami


User submitted from AEWNET (http://www.aewnet.com/)


Your error code translates as
10-0-0-0000 0000 0100-0000 0001 1010 1000
10 = Warning
0 = Microsoft defined
0 = reserved
100 (4) = FACILITY_ITF (means that the error code is defined by the
interface -- which COM object is returning the error?)
0x0110101000 is your actual error
Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.