newgrafix Ltd. Webdesign, Webhosting, E-CommercePreiswertes Webhosting
Einführung> <dotnet_load
Last updated: Tue, 31 Mar 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 10: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);
?>

Einführung> <dotnet_load
Last updated: Tue, 31 Mar 2009