Page 1 of 1 1
Topic Options
#122 - 1999-06-15 03:03 AM Using OLE
Anonymous
Unregistered


I'm searching for examples using OLE instructions : I would like to open a Word document using Kixtart.

Thanks in advance

Top
#123 - 1999-10-14 06:25 PM Re: Using OLE
Anonymous
Unregistered


Are you using Win9x or NT? I can tell you how to do this with NT, but I've had limited success with Win9x.
SRHarmon

Top
#124 - 1999-10-15 08:32 AM Re: Using OLE
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
This is as far as I ever got...

[CODE]

$word = olecreateobject ( "Word.Application" )
$doc = olecreateobject ( "Word.Document" )
$rs = oleputproperty ( $word, "Visible", "b", "1" )
;$rs = olecallfunc ( $word, "Quit" )
;$rs = olereleaseobject ( $doc )
;$rs = olereleaseobject ( $word )

[\CODE]

Uncomment the last three lines at the end of the day. I've had limited success with KIX OLE functions. The get/put property functions work. The callfunc / callproc functions work as well. The problem is when you try to access methods and properties in subobjects ( like the "Document" subobject in Word or the "Sheet" subobject in Excel. There is a getsubobject function in KIX but it either doesn't work or isn't documented properly. It should be returning a handle to an object but it doesn't.

Anybody ???

By the way. The undocumented typelist value for strings is "s".

Shawn.

Top
#125 - 1999-10-15 10:58 PM Re: Using OLE
Anonymous
Unregistered


Shall we continue this in the other discussion?
OLE Automation and Excel...
Regards,
Steve

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 837 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.05 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org