Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default VSTO HRESULT

I am having an issue that should be simple, but makes no sense. If I run the
following line of code (VSTO with C#).

this.Range["X1"].Value2 = "5";

It works fine. But if I run the following.

string s = "5";
this.Range["X1"].Value2 = s;

It blows up with an HRESULT: 0x800A03EC.....the following gets the same result

object s = "5";
this.Range["X1"].Value2 = s;

I found that this can occur when the CultureInfo for COM is not matching so
I set the CurrentThread's CultureInfo to en-US and the error still
occurred.....Does anyone have any ideas??? I am using Windows XP 64-bit with
Excel 2003 and VS.NET 2005 (VSTO).

Thanks,
ACFalcon
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HRESULT: 0x800A03EC shyamprabhu Excel Programming 0 February 27th 07 12:36 PM
Exception from HRESULT: 0x800401A8 Miles Excel Programming 1 February 12th 07 02:03 PM
Exception from HRESULT: 0x800A03EC nano2k New Users to Excel 0 July 21st 06 12:15 PM
Exception from HRESULT: 0x800AC472 [email protected] Excel Discussion (Misc queries) 0 May 30th 06 09:01 PM
Exception HResult: 0x8007FA08 (VB.net) prashanth Kotha Excel Programming 0 August 20th 03 07:27 PM


All times are GMT +1. The time now is 11:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"