Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Update BuiltinDocumentProperties

Reply
Thread Tools

Update BuiltinDocumentProperties

 
 
Blackpower
Guest
Posts: n/a
 
      07-25-2003
Im trying to update some BuiltinDocumentProperties of office documents.
It all goes wel, except that it doesnt save the properties.
If I save to a new file the new properties are saved as well.

here is the code.

use strict;
use Win32::OLE qw(in);

my $Word = Win32::OLE->new('Word.Application', 'Quit');
my $Doc = $Word->Documents->Open('Document1.doc');

$Doc->BuiltinDocumentProperties->{Title} = "Custom Title" ;
$Doc->BuiltinDocumentProperties->{Comments} = "Custom Comment" ;


#$Doc->SaveAs( 'Document2.doc'); # this works

$Doc->Save ; #this doesnt work.

$Doc->Quit ;
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update On The Windows Phone 7 Update Update Lawrence D'Oliveiro NZ Computing 2 02-25-2011 08:03 AM
[BUG?] (2) Update database using stored procedure and OleDbDataAdapter.Update joun ASP .Net 5 11-30-2004 06:51 PM
[BUG?] Update database using stored procedure and OleDbDataAdapter.Update joun ASP .Net 9 11-30-2004 04:57 AM
[Vb.net question] how to apply online update function into program (the effect just like Norton system work live update) chan ASP .Net 1 03-04-2004 02:58 PM
Datalist: update a datasource without using select/edit/update Hartmut Schroth ASP .Net 3 12-01-2003 09:54 AM



Advertisments