Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Win32::ole and MSWord

by vek (Prior)
on Sep 15, 2002 at 17:48 UTC ( #198052=note: print w/ replies, xml ) Need Help??


in reply to Win32::ole and MSWord

LINKAGE SECTION IDENTIFICATION DIVISION ENVIRONMENT DIVISION WORKING-STORAGE SECTION
We use COBOL for some of our legacy applications here. I've never seen these particular statements in Perl code however, interesting...

-- vek --


Comment on Re: Win32::ole and MSWord
Download Code
Re^2: Win32::ole and MSWord
by justlooking (Initiate) on Jun 24, 2004 at 18:00 UTC
    Running this code, I was prompted to save my document and confirm its name. Is there a way to force the document to save and accept the name given, without user interaction?
      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} } );
        And five years later :-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2014-09-19 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (143 votes), past polls