Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

docx and Perl

by fionbarr (Friar)
on Nov 03, 2009 at 18:45 UTC ( [id://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.

    --MidLifeXis

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 (Chancellor) 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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-24 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found