473,382 Members | 1,420 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 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 5301
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Lekyan | last post by:
I have problem setting the password for an ADAM user using C#. I used the SetPassword code given in the Microsoft page, changed several parameters, but ran into an exception. I wonder if other...
1
by: Kimmo Laine | last post by:
Hi, we have a (unmanaged) ATL COM server, which implements two interface: ITestInterface1 and ITestInterface2. Both of these interfaces also support the ISupportErrorInfo-interface. Interface...
0
by: TrtnJohn | last post by:
I've recently converted some VB 6 code over that used the old non-structured exception handling. I also have some .NET classes that raise custom exception classes. When the code was VB6 I used to...
4
by: cpajoe2001 | last post by:
I am not sure if this is the proper place to put this thread but I have run into a road block. I am writing a web app that will create groups in Active Directory then add users to those groups. I...
6
by: =?Utf-8?B?Um9i?= | last post by:
Hi, If I call my own DLL from Javascript, a HRESULT is returned. Javascript cannot cast this to an integer. Is there any other way of typecasting this returnvalue to integer, wihout using the...
1
by: =?Utf-8?B?UHJhc2hhbnQgS2hvbmRl?= | last post by:
Hi all, I am developing OPC Client in VB.net. I have developed the code and reading OPC Items on Sampling as well as event based (OnDataChange). When I am working with local machine then my code...
3
by: wundertier | last post by:
Hi, I'm accessing COM objects from C#.net. In case of error a COMException is thrown which includes the HRESULT. But how do I get the description for the HRESULT? The Message property of the...
11
by: Academia | last post by:
I've been Googling and there is many many hits but I can't find what I want. I've read at one time how DotNET treats HRESULT but can't find it now. Does it return HRESULT unchanged or does it...
4
by: yogarajan | last post by:
The specified module could not be found. (Exception from HRESULT: 0x8007007E) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.