NathanPhp Posted August 18, 2015 Share Posted August 18, 2015 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...? Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted August 18, 2015 Share Posted August 18, 2015 Not sure but maybe use PHPWord using the Template processing for opening an existing word document and replaced tag blocks in the document with your value? For example in the document you have tag blocks like this ${name}NAME HERE{/$name} Then using the template processing to replace that block with someones name you can use $templateProcessor->setValue('Name', 'John Doe'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.