$word = new COM("word.application") or die ("Could not initialise MS Word object.");

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

echo $content;


$word = null;

Please Help

Recommended Answers

No Word installed ?

Jump to Post

All 4 Replies

No Word installed ?

Word is already installed

Case sensitive perhaps ?

$word = new COM("Word.Application");

Problem Still Exist

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.