Hi everybody,
I need to get the Office Document Properties from MSWord-files and i
found DSOFile for COM:
http://support.microsoft.com/support/kb/articles/Q224/3/51.asp
But now the problem is, that the COM Object don't releases the file
lock. Here is the code I use:
<?php
$propReader = new COM('DSOleFile.PropertyReader');
$info = pathinfo(__FILE__);
$docProps = $propReader->getDocumentProperties($info['dirname'] . '/Dok0.doc');
$custProps = $docProps->customProperties;
while($elem = $custProps->next()) {
echo $elem->Name . ': ' . $elem->Value . '<br>';
}
unset($custProps);
unset($docProps);
unset($propReader);
?>
I don't find anything online about that problem... Does anyone have
experience with DSOFile?
Thanks in advance,
Marcel Tschopp
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php