473,662 Members | 2,581 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.P osition = Excel.XlLegendP osition.xlLegen dPositionBottom

(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 5316
Hi,

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

Ken
------------------
"KC" <yo*@dontneed.t his> wrote in message
news:%2******** **********@TK2M SFTNGP15.phx.gb l...
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.P osition = Excel.XlLegendP osition.xlLegen dPositionBottom

(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***@bellsout h.net> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi,

http://msdn.microsoft.com/library/de...VSTExlchrt.asp
Ken
------------------
"KC" <yo*@dontneed.t his> wrote in message
news:%2******** **********@TK2M SFTNGP15.phx.gb l...
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.P osition = Excel.XlLegendP osition.xlLegen dPositionBottom

(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.P osition = Excel.XlLegendP osition.xlLegen dPositionBottom

(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_nosp am.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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.P osition = Excel.XlLegendP osition.xlLegen dPositionBottom

(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
7847
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 people have solved this problem. But I have searched Google groups for a couple days but still couldn't get a solution. I copied the code from: ...
1
6331
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 implementation is divided into two class: CTestInterface2, which implements the ITestInterfac2, and CTestInterface1, which implements ITestInterface1 AND ITestInterface2.
0
1080
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 expose my .NET classes using COM interop and errors raised from .NET classes were being caught correctly in VB6. Now that everything is .NET the old non-structured exception handling is still there in the converted classes. But now the...
4
10900
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 have it creating the groups just fine however when i go to add a user i get. The requested operation did not satisfy one or more constraints associated with the class of the object. (Exception from HRESULT: 0x80072014) And I can not find any help on...
6
3240
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 exception method which is described everywhere ? Please note that I am unfamiliar with javascript, I am used to C/C++. My Javascript call looks like : var result;
1
5427
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 works fine with both Sampling as well as OnDataChange, but when I am trying to read data from Remote OPC Server then Sampling works fine but I am not able fetch data on event based process. I am able to connect to the OPC Server but when i am...
3
15918
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 COMException does not contain any useful information. Example (I've got a german OS only, so I don't know the exact english version of these texts): HRESULT is: 800706ba
11
5928
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 check it for error-return or what? Thanks for any help
4
23527
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 trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E) Source Error: An unhandled...
0
8432
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8344
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8764
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8546
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.