Update BuiltinDocumentProperties

Discussion in 'Perl Misc' started by Blackpower, Jul 25, 2003.

  1. Blackpower

    Blackpower Guest

    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 ;
    Blackpower, Jul 25, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hartmut Schroth
    Replies:
    3
    Views:
    3,483
    Hartmut Schroth
    Dec 1, 2003
  2. joun
    Replies:
    9
    Views:
    2,221
    W.G. Ryan eMVP
    Nov 30, 2004
  3. joun
    Replies:
    5
    Views:
    2,647
  4. =?Utf-8?B?TWljaGFlbA==?=

    How to update datagrid after update

    =?Utf-8?B?TWljaGFlbA==?=, Mar 17, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    495
    Alex D.
    Mar 17, 2006
  5. mesut
    Replies:
    0
    Views:
    650
    mesut
    Feb 19, 2007
Loading...

Share This Page