PHP
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Introducere> <dotnet_load
Last updated: Fri, 09 Jan 2009

view this page in

COM and .Net (Windows)



add a note add a note User Contributed Notes
COM
ilayansmano at gmail dot com
26-Aug-2008 01:39
Extracting text from Word Documents via PHP and COM

<?php
$word
= new COM("word.application") or die ("Could not initialise MS Word object.");
$word->Documents->Open(realpath("Sample.doc"));

// Extract content.
$content = (string) $word->ActiveDocument->Content;

echo
$content;

$word->ActiveDocument->Close(false);

$word->Quit();
$word = null;
unset(
$word);
?>

Introducere> <dotnet_load
Last updated: Fri, 09 Jan 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites