Hi
I am trying to extract dome properties from a MS Word document using the following code ...
use Win32::OLE;
$doc = Win32::OLE->new('DSOleFile.PropertyReader', 'Quit') || die "\"Unable to create PropertyReader\"";
$doc_prop = $doc->GetDocumentProperties("./a.doc"
|| die "\"Unable to process properties of file\"";
print $doc_prop->author;
print $doc_prop->title;
print $doc_prop->comments;
... however the code fails to create the document object.
Can anyone see what I am doing wrong please.
Many thanks
Ivor
I am trying to extract dome properties from a MS Word document using the following code ...
use Win32::OLE;
$doc = Win32::OLE->new('DSOleFile.PropertyReader', 'Quit') || die "\"Unable to create PropertyReader\"";
$doc_prop = $doc->GetDocumentProperties("./a.doc"
print $doc_prop->author;
print $doc_prop->title;
print $doc_prop->comments;
... however the code fails to create the document object.
Can anyone see what I am doing wrong please.
Many thanks
Ivor