Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default RTD issue with Excel 2007

I have an RTD server implentation that is working fine with Excel 2003, but
not with 2007. #VALUE errors are shown when trying to use it with 2007.

I created a simple test project to try and narrow down the source of the
problem, but have not been able to uncover any useful information.

The closest I've come to finding a meaningful error message has been by
executing the following .vbs test script:

Set x = CreateObject("Rtd.Server")
x.ServerStart Nothing

The error message returned when running the script is:

test.vbs(2, 1) (null): Library not registered.

I have debug code in the constructor for the class that implements
IRtdServer and have confirmed that the class is being initialized
successfully. Any calls to the IRtdServer interface, however, fail with the
above error message.

Any idea what the problem could be?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default RTD issue with Excel 2007

I was able to find the source of the problem in the COM Shim Wizard generated
C++ code for the shim used to isolate the RTD component. In the RTD proxy
class definition located in RTDProxy.h, IDispatchImpl was explicitly pointing
to the Excel 1.5 type library. Changing it to 1.6 solved the problem.

IDispatchImpl<Excel::IRtdServer, &Excel::IID_IRtdServer,
&Excel::LIBID_Excel, 1, 5

This was confusing because elsewhere in the generated code where the Excel
type library is being imported, no specific versions are being specified.


"bradmo" wrote:

I have an RTD server implentation that is working fine with Excel 2003, but
not with 2007. #VALUE errors are shown when trying to use it with 2007.

I created a simple test project to try and narrow down the source of the
problem, but have not been able to uncover any useful information.

The closest I've come to finding a meaningful error message has been by
executing the following .vbs test script:

Set x = CreateObject("Rtd.Server")
x.ServerStart Nothing

The error message returned when running the script is:

test.vbs(2, 1) (null): Library not registered.

I have debug code in the constructor for the class that implements
IRtdServer and have confirmed that the class is being initialized
successfully. Any calls to the IRtdServer interface, however, fail with the
above error message.

Any idea what the problem could be?

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 2007 autorecover issue Peter Thompson Excel Discussion (Misc queries) 0 September 9th 09 11:14 AM
Excel 2007 Issue PA Charts and Charting in Excel 2 July 1st 09 02:05 AM
Excel 2007 Issue Cary K[_2_] Excel Discussion (Misc queries) 0 March 12th 09 04:02 PM
EXCEL 2007 - Printing Issue not so technical Excel Discussion (Misc queries) 2 September 23rd 08 05:05 PM
Excel 2007, log chart issue Newsx Charts and Charting in Excel 10 August 23rd 08 06:55 PM


All times are GMT +1. The time now is 08:34 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"