comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDLcomIDispatch question (newbie alert!)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDLcomIDispatch question (newbie alert!) [message #39073] Sun, 25 April 2004 16:24 Go to next message
cartik_sharma is currently offline  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 #39082 is a reply to message #39073] Fri, 23 April 2004 16:35 Go to previous messageGo to next message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Jeff wrote:
> Can someone tell me what I'm doing wrong in the following line:
>
> xl = obj_new("IDLcomIDispatch$PROGID$Excel_Application")

Don't the newbies ask hard questions these days?!

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: IDLcomIDispatch question (newbie alert!) [message #39218 is a reply to message #39073] Mon, 26 April 2004 08:37 Go to previous message
jnettle1 is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL: XROI and data saving
Next Topic: IDLcomIDispatch question (newbie alert!)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 13:47:01 PDT 2025

Total time taken to generate the page: 2.40178 seconds