Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Win32::ole and MSWord

by binf-jw (Monk)
on Aug 19, 2008 at 13:58 UTC ( #705221=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Win32::ole and MSWord
in thread Win32::ole and MSWord

4 Years late but may be useful to others, Haven't read all the code but i've used this statement when i've been using OLE

$Active::Document->{Saved} = 1; $Active::Document->Close;
Although to be honest, You're better to use the save as like Kenny did. Here's some more on SaveAs() method if anyone needs an example:
my $MSDN_const = { %{ Win32::OLE::Const->Load("Microsoft Word 11.0 Object Library +") } }; # Save as normal MS Word document $Active::Document->SaveAs( { FileName=>'C:\\My_Word_Document.doc', FileFormat=>$MSDN_const->{wdFormatDocument} } ); # Save in XML format $Active::Document->SaveAs( { FileName=>'C:\\My_XML_Document.xml', FileFormat=>$MSDN_const->{wdFormatXML} } );


Comment on Re^3: Win32::ole and MSWord
Select or Download Code
Re^4: Win32::ole and MSWord
by Anonymous Monk on Sep 17, 2013 at 05:10 UTC
    And five years later :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://705221]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-10-25 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (147 votes), past polls