Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Createobject returns null in Excel

We have a C# library and is registered.

but when we called from Excel, the createobject returns null instead of
exception.
This happened to only one machine amonge hundred of machines and the
user can run it for the first time.

we did some tests:
1. the library can be called by VB code with Createobject method.
2. the library can be called by C# code with createinstance
3. the libary is constructor has been called and there is nothing in
the constructor.
4. Empty excel workbook with only few lines to use createobject will
return null

any idea?
thank you!

  #2   Report Post  
Posted to microsoft.public.excel.misc
exceluserforeman
 
Posts: n/a
Default Createobject returns null in Excel

xlApp.excel
xlapp.visible=true

" wrote:

We have a C# library and is registered.

but when we called from Excel, the createobject returns null instead of
exception.
This happened to only one machine amonge hundred of machines and the
user can run it for the first time.

we did some tests:
1. the library can be called by VB code with Createobject method.
2. the library can be called by C# code with createinstance
3. the libary is constructor has been called and there is nothing in
the constructor.
4. Empty excel workbook with only few lines to use createobject will
return null

any idea?
thank you!


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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Open Excel 2003 from Windows Explorer pmpjr Excel Discussion (Misc queries) 9 September 11th 06 03:58 PM
Generating Correlated Random Values in Excel Randy Excel Discussion (Misc queries) 2 January 16th 05 09:50 PM
Specify a null value in an Excel Database criteria range Johnnyy2k Excel Worksheet Functions 2 December 28th 04 04:43 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 03:39 PM.

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"