Re: IDLcomIDispatch question (newbie alert!) [message #39073] |
Sun, 25 April 2004 16:24  |
cartik_sharma
Messages: 4 Registered: March 2004
|
Junior Member |
|
|
1. I found a useful example to integrate/modify Excel spreadsheets
into IDL in the External Development Guide for IDL.,Pages 88 to 92.
You'd find the same program in
C:\RSI\lib\examples\combridge\ActiveXExcel.pro
Not as elegant as directly using the registered COM object but works
ok.
-Cartik
jnettle1@utk.edu (Jeff) wrote in message news:<330af58b.0404231210.3383b26f@posting.google.com>...
> Can someone tell me what I'm doing wrong in the following line:
>
> xl = obj_new("IDLcomIDispatch$PROGID$Excel_Application")
>
> I was hoping this would create a reference to excel, but it's giving
> me the error:
> "OBJ_NEW: Requested object doesn't exist."
> Which is weird to me, because I am 90% sure I'm using the correct
> PROGID....at least I know that this PROGID works when i try to use COM
> objects using other languages like VB or PERL. Any help would be
> greatly appreaciated. I've searched the archives for excel references
> and what i found doesn't look too promising, so I don't have high
> hopes that I'm going to get this to work, but hopefully one of you
> fine folks will show me something silly that I've missed :)
>
> Thanks and have a good weekend,
> Jeff
|
|
|
|
Re: IDLcomIDispatch question (newbie alert!) [message #39218 is a reply to message #39073] |
Mon, 26 April 2004 08:37  |
jnettle1
Messages: 27 Registered: January 2001
|
Junior Member |
|
|
Cartik,
Thanks for the reply. I knew about this already - I thought the
routine you mentioned was going to have everything I needed, but it
doesn't quite do it. I'm sure you know this, but despite the title of
the routine, ActiveXExcel doesn't really link to Excel, it links to a
smaller spreadsheet activeX control. I was trying to set up the link
to excel for teaching purposes, so I'd rather bypass this smaller
control. But you're right, I will make do with this if I have to. I
just can't figure out why I can't get the link straight to excel to
work - it seems to me that it should. But thanks!
Jeff
cartik_sharma@yahoo.com (Cartik Sharma) wrote in message news:<c4b40dca.0404251524.4be67389@posting.google.com>...
> 1. I found a useful example to integrate/modify Excel spreadsheets
> into IDL in the External Development Guide for IDL.,Pages 88 to 92.
> You'd find the same program in
> C:\RSI\lib\examples\combridge\ActiveXExcel.pro
>
> Not as elegant as directly using the registered COM object but works
> ok.
> -Cartik
>
> jnettle1@utk.edu (Jeff) wrote in message news:<330af58b.0404231210.3383b26f@posting.google.com>...
>> Can someone tell me what I'm doing wrong in the following line:
>>
>> xl = obj_new("IDLcomIDispatch$PROGID$Excel_Application")
>>
>> I was hoping this would create a reference to excel, but it's giving
>> me the error:
>> "OBJ_NEW: Requested object doesn't exist."
>> Which is weird to me, because I am 90% sure I'm using the correct
>> PROGID....at least I know that this PROGID works when i try to use COM
>> objects using other languages like VB or PERL. Any help would be
>> greatly appreaciated. I've searched the archives for excel references
>> and what i found doesn't look too promising, so I don't have high
>> hopes that I'm going to get this to work, but hopefully one of you
>> fine folks will show me something silly that I've missed :)
>>
>> Thanks and have a good weekend,
>> Jeff
|
|
|