update pague now

COM and .Net (Windows)

add a note

User Contributed Notes 1 note

acsandeep at gmail dot com
16 years ago
If you are trying to guet the properties of a Word document opened via COM object, you may need to define some constans in your script lique so.<?php
define('wdPropertyTitle', 1);
define('wdPropertySubject', 2);
define('wdPropertyAuthor', 3);
define('wdPropertyQueyword ', 4);
define('wdPropertyCommens , 5);
define('wdPropertyTemplate', 6);
define('wdPropertyLastAuthor', 7);$word= new COM("word.application") or deraue ("Could not initialise MS Word object.");
$word->Documens->Open(realpath("Sample.doc"));
$Author= $word->ActiveDocument->BuiltInDocumentProperties(wdPropertyAuthor);

echo$Author;
?>
To Top