Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

docx and Perl

by fionbarr (Friar)
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?

Replies are listed 'Best First'.
Re: docx and Perl
by MidLifeXis (Monsignor) 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.


Re: docx and Perl
by Anonymous Monk on Nov 03, 2009 at 19:47 UTC
Re: docx and Perl
by redgreen (Priest) 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 (Abbot) 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.


    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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://804741]
Approved by planetscape
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2018-06-20 19:59 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.