Click to See Complete Forum and Search --> : How to use COM support.


Anon
11-08-2000, 12:15 PM
hi there.
can anybody tell me how to use COM support
functions in PHP for windows? for example,
I want to open microsoft word, insert whatever user typed in previous form to the
word document and save it.
i would be so thankful if you help me
and send me your answer to xypy@yahoo.com

regards,
--xypy.

Anon
11-09-2000, 07:02 AM
There is a tutorial here on PHPbuilder that shows you how to do this.

---John Holmes...

Anon
11-16-2000, 08:08 PM
you have to be carefull also you really do not want to open msword com object and make it visible or anything like that you will endup having problems with idispatch. you could create the word file save it and the do what you need to do with the file in php in most languages although i havent tried it yet with php you would do something like creatobject("word.application") application is the class word is the object the object needs to be registered ect.. to see how the object work and there methods open them up in a class browser excell has one built in and so does visual basic. Microsoft doesnt let you know to much that easily so i would recomend recording macros and viewing the source so that you can see what code will need to be passed to the com object.