471,888 Members | 2,150 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,888 software developers and data experts.

Is HRESULT a bug or an error?

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
4 5252
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
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

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
"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.

Similar topics

6 posts views Thread by =?Utf-8?B?Um9i?= | last post: by
1 post views Thread by =?Utf-8?B?UHJhc2hhbnQgS2hvbmRl?= | last post: by
3 posts views Thread by wundertier | last post: by
11 posts views Thread by Academia | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.