Today I received a mail with a file attachment and the file extension was .docx.
.docx actually is a Microsoft word processor document and named OpenXML . Now .docx is by default format for Latest Microsoft word 2007.
Then I found very panic to open the file in Openoffice.
Now it is not a problem anymore to open .docx documents in any Linux distribution coming with OpenOffice suit.
With the help of my friend google I simply download (odf_filter.tar.bz2) import filter for OpenOffice to my home folder.
verman@verman-desktop:~$ sudo wget http://www.taufikraras.com/download/odf_filter.tar.bz2
[sudo] password for verman:
–2009-08-06 11:20:33– http://www.taufikraras.com/download/odf_filter.tar.bz2
Length: 2967411 (2.8M) [application/x-tar]
Saving to: `odf_filter.tar.bz2′
100%[======================================>] 29,67,411 55.4K/s in 86s
2009-08-06 11:22:03 (33.8 KB/s) – `odf_filter.tar.bz2′ saved [2967411/2967411]
verman@verman-desktop:~$
verman@verman-desktop:~$ pwd
/home/verman
verman@verman-desktop:~$
verman@verman-desktop:~$ ls
nsmail.tmp
odf_filter.tar.bz2
opera-9.64
OperaDownloads
part.png
Then Untar the odf_filter.tar.bz2
verman@verman-desktop:~$ sudo tar -xvjf odf_filter.tar.bz2
files/
files/README.txt
files/MOOXFilter_cpp.xcu
files/MOOXTypeDetection.xcu
files/OdfConverter
verman@verman-desktop:~$ ls
nsmail.tmp
odf_filter.tar.bz2
opera-9.64
OperaDownloads
part.png
files
verman@verman-desktop:~$
Change the directory to files
verman@verman-desktop:~$ cd files/
verman@verman-desktop:~/files$
Copied OdfConverter to /usr/lib/openoffice/program/
verman@verman-desktop:~/files$ sudo cp OdfConverter /usr/lib/openoffice/program/
[sudo] password for verman:
verman@verman-desktop:~/files$
Created a folder TypeDetection in /usr/lib/openoffice/share/registry/modules/org/openoffice
verman@verman-desktop:~/files$ sudo mkdir /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection
Then Created a folder Filter in /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection
verman@verman-desktop:~/files$ sudo mkdir /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter/
Then Copied MOOXFilter_cpp.xcu to /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter/
verman@verman-desktop:~/files$ sudo cp MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter/
Created a Folder Types in /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection
verman@verman-desktop:~/files$ sudo mkdir /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types
Then Copied MOOXTypeDetection.xcu to /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types/
verman@verman-desktop:~/files$ sudo cp MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types/
verman@verman-desktop:~/files$
Now open OpenOffice.org Word Processor
Click Applications > Office > OpenOffice.org Word Processor.
Then Press Ctrl+O to open and select Microsoft Word 2007 document (.docx) as the file type

That’s it .
Now You can read all .docx files in Openoffice Word Processor.
Thanks to taufikraras
- I did not understand the language but still managed to utilize the information by trying the command in my desktop.


Hi Verman,
Nice to know that my post is usefull. It’s been a long time since the last time I updated my blog.
Keep posting.
apparently its working.i need a .docx file now to check.thanks boss.now i’m going to check your gimp tutorial
Thanks a lot. It has certainly been of great help. However, there seems to be some problem with the layout when I open the .docx file using OpenOffice. It changes a bit But the same file, if I save in .doc format and then open using OpenOffice, there is no problem!!! Can you help me with this?? Your help will be much appreciated..
Hi,
Thanks for the help but I had a problem while using it. I did exactly what is given in the above message and placed all the files in proper directories. Then I tried to open a .docx file using file type as .docx but OO told me that “Read Error Data could not be read from the file”. I have tried to read this file on with a Word7 and there is nothing wrong with the file. What happened and how can I fix it?
Thanks for your help.