Page 1 of 1

How to write content into word document using PHP and COM

Posted: Tue Aug 18, 2015 3:30 am
by NathanPhp
Hello

I want to write some content into a word document which is already opened in my system and the content which i select to write should be pasted into the current cursor location in word document.

How to do this using PHP COM...?

Re: How to write content into word document using PHP and CO

Posted: Tue Aug 18, 2015 4:45 pm
by Christopher
I know you can read and write to documents using PHP COM. But you are asking for something that PHP is not designed to do, or appropriate for. Maybe look into com_event_sink() http://php.net/manual/en/function.com-event-sink.php