How to write content into word document using PHP and COM

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
NathanPhp
Forum Newbie
Posts: 1
Joined: Tue Aug 18, 2015 2:14 am

How to write content into word document using PHP and COM

Post 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...?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

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

Post 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
(#10850)
Post Reply