Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
more useful options
 
PerlMonks  

docx and Perl

by fionbarr (Monk)
on Nov 03, 2009 at 18:45 UTC ( #804741=perlquestion: print w/ replies, xml ) Need Help??
fionbarr has asked for the wisdom of the Perl Monks concerning the following question:

My Win32::OLE will not open docx files...can someone direct me to a Perl source to do this?

Comment on docx and Perl
Re: docx and Perl
by Anonymous Monk on Nov 03, 2009 at 19:47 UTC
Re: docx and Perl
by MidLifeXis (Prior) on Nov 03, 2009 at 19:54 UTC

    Do you have Office 2007 installed? How about OpenOffice 3?

    IIRC (and IMNRC), OLE requires that you have an application to handle the OLE message in order for it to work. No provider for the service, and the service will not get, umm, serviced.

    --MidLifeXis

Re: docx and Perl
by redgreen (Curate) on Nov 03, 2009 at 21:51 UTC

    If you are using Microsoft Office XP/2003, you can install the Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats, which will give you the ability to read docx files.

    If the OLE itself is the problem, start with [WIN32::OLE Word]

Re: docx and Perl
by afoken (Parson) on Nov 04, 2009 at 20:39 UTC

    docx is a ZIP containing XML and some auxilary files, so use Archive::Zip and some XML library.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      hi alexander can u plz let me know for .docx file "Archive::Zip and some XML library" usage with any example thanks sudeep
        The documentation comes with examples

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2014-04-17 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (443 votes), past polls