How to open Microsoft OpenXML docx documents in OpenOffice

 

As of this time of this writing, the OpenOffice.org package included with Ubuntu Festy Fawn, Ubuntu Gutsy Gibbon and Debian Etch still does not support opening Microsoft Office OpenXML (docx) document format.

Though the use of docx files are HIGHLY DISCOURAGED, it is still important for us to be able to read document in this format in-case if somebody forwarded docx files to us.

Here are some easy steps to follow in order to enable OpenOffice.org to read OpenXML docx files :

  • Download odf_filter.tar.bz2 file, and unzip it
  • The archive contains 4 additional files, MOOXFilter_cpp.xcu, MOOXTypeDetection.xcu, OdfConverter and README.txt
  • Follow instructions in README.txt and copy the 3 files into Openoffice installation directory as outlined below


sudo cp OdfConverter /usr/lib/openoffice/program/

sudo cp MOOXFilter_cpp.xcu

  • usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter/

    sudo cp MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types/

  • openoffice_docx.png

    After that, your Openoffice.org installation should be able to read/open Microsoft Office 2007 OpenXML docx file without any problems.

    Drawbacks
    This trick only works on Document (docx) files but not on Presentation (pptx) and Spreadsheet files (xslx).

    Original source - OpenOffice. OpenXML Translator

    Tags: , , , , , , , , , ,

    Bookmark this article These icons link to social bookmarking sites where readers can share and discover new web pages.
    • digg
    • YahooMyWeb
    • NewsVine
    • Netvouz
    • Reddit
    • Spurl
    • Furl
    • del.icio.us
    • StumbleUpon
    • Technorati
    • TwitThis

    Keep updated with this website! : Subscribe to your email

    Recommended Reading

    12 smashing comments for this post.

    1. Bloglah.org: Malaysia bloggers community Said:

      14:03 How to open Microsoft OpenXML docx documents in OpenOffice» ‎ mypapit

    2. Charles Mitchell Said:

      The second line, path is missing the leading /.

      sudo cp MOOXFilter_cpp.xcu usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter/

      should be

      sudo cp MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter/

    3. mypapit Said:

      thanks for informing me Charles!

    4. Planet Malaysia - Read Malaysian Blog, Read Planet Malaysia Said:

      How to open Microsoft OpenXML docx documents in OpenOffice

    5. Raseel Said:

      Hey thanks a lot. Got viewing these stupid docx files in no time.

    6. LCG Said:

      Thanks so much. An instructor just uploaded a half-page of instructions in this god-forsaken format and I am soooo happy I can open it without purchasing MS Word 2007. If only MS could be forced to use ODF like everyone else.

    7. zyz Said:

      Thank for this info. It works.

      You should also add an original source of OdfConverter binary:

      http://download.novell.com/SummaryFree.jsp?buildid=ESrjfdE4U58~

      People can download this binary from there (and verify a checksum) if they are concerned about security.

    8. mypapit Said:

      zyz, i’ve included the source from novel website. Thanks

    9. Karen Said:

      I simply send .docx files back to the sender, and ask them to send it in a standard format, even the older Microsoft Word formats. And I include a link to OpenOffice.org, so they can get a free word processor that will allow them to do so. Why should the rest of the world suffer just because MS wants to make a few more bucks and not allow their old format to be used?

    10. David Legg Said:

      Great blog article, but do please do Charles Mitchell’s correction (above).

    11. David Legg Said:

      Well that was a bit of a flop. I tried importing a file as type docx and got the message that the file was corrupt, and would OO like me to repair it. I said yes but the resulting file was empty. Bit of a pity. I will go and try the command line programme next when there is some time …

      Thanks anyway.

      Incidentally, I entirely agree with Karens’ suggestion, above.

    12. andrew Said:

      Here is a simple script I wrote to do everything in one step. Call the script ooxmlfilterinstall.sh and run it like so

      sudo ooxmlfilterinstall.sh

      or to remove the converter:

      sudo ooxmlfilterinstall.sh uninstall

      —-
      #!/bin/sh
      # installer for OpenOffice OOXML filter/converter.
      PKGURL=”http://blog.mypapit.net/imej/odf_filter.tar.bz2″
      PKGFILE=”odf_filter.tar.bz2″
      FILE1=”./files/MOOXFilter_cpp.xcu”
      FILE1DEST=”/usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter/MOOXFilter_cpp.xcu”
      FILE2=”./files/MOOXTypeDetection.xcu”
      FILE2DEST=”/usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types/MOOXTypeDetection.xcu”
      FILE3=”./files/OdfConverter”
      FILE3DEST=”/usr/lib/openoffice/program/OdfConverter”
      if test “$1″ = ‘uninstall’;then
      echo “$0: Uninstalling OpenOffice OOXML Converter.”
      rm -f $FILE1DEST $FILE2DEST $FILE3DEST
      else
      echo “$0: Installing OpenOffice OOXML Converter.”
      echo “$0: downloading odf_filter.tar.bz2″
      wget $PKGURL > /dev/null 2>&1
      echo “$0: extracting odf_filter.tar.bz2″
      tar -xjf $PKGFILE
      echo “$0: Installing files”
      # don’t clobber
      cp -u $FILE1 $FILE1DEST
      cp -u $FILE2 $FILE2DEST
      cp -u $FILE3 $FILE3DEST
      fi
      echo “$0: Done.”
      —-

    Leave a Comment

    Subscribe by email

    Enter your Email