Stuck with .docx, .xlsx, and .pptx files? These are also called OpenXML or Microsoft Office 2007 format. Here's a way to convert them in to .doc, .xls, and .ppt (respectively) in Windows.
Don't let the name "Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 file format" fool you. You do not need Microsoft Office, so it works great with OpenOffice.org, Google Docs, Abiword, WordPerfect, and Microsoft Office 2003.
Installation
Just download and install Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 file format. The site does not require the annoying Windows Genuine Advantage validation required for some other Microsoft downloads.
GUI conversion
Simply open the .docx, .xlsx, or .pptx document as you would any other. For example, if the document is on your desktop, just double click on it. Then, you'll see this simple dialog:
Command line conversion
While most people will use the GUI, others may want automated or batch conversions. If so, use the Windows command line with this format:
"C:\Program Files\Microsoft Office\Office12\wordconv.exe" -oice -nme <input file> <output file>
Quality of conversion
Microsoft being the OpenXML experts, the conversion was excellent and rendered well in OpenOffice.org 2.3.1. The following converted properly: the text, bold, italics, underline, typefaces changes, font sizes, character colors, paragraph indentation, paragraph alignment, highlighting, hyperlinks, bookmarks, footnotes, track changes, comments, lists, tables, picture, columns, and manual page break.
The same two problems were visible in OpenOffice.org 2.3.1 and Word 2003: the header was not aligned properly, and the embedded Excel object displays correctly but cannot be edited. OpenOffice.org complains, "Error activating object: General OLE error." Word 2003 complains, "The server application, source, or item cannot be found." I assume they are both looking for an Excel 2007 installation.
Here is the original reference document shown in Word 2007:
Here is the converted .doc document viewed in OpenOffice.org 2.3.1 with the Calibri font installed:
Compatibility with Linux through Wine
Sorry, this method doesn't yet work on Linux with Wine 0.9.52. The GUI appears to work but produces nothing. The command line method crashes Wine.
cd ~/.wine/drive_c/Program\ Files/Microsoft\ Office/Office12/
wine wordconv.exe -oice -nme OpenXML_text_reference_document.docx test.doc
fixme:heap:HeapSetInformation 0x110000 1 (nil) 0
fixme:heap:HeapSetInformation 0x110000 1 (nil) 0
fixme:heap:HeapSetInformation 0x110000 1 (nil) 0
fixme:heap:HeapSetInformation 0x110000 1 (nil) 0
fixme:win:WIN_CreateWindowEx Parent is HWND_MESSAGE
err:x11drv:X11DRV_CreateWindow invalid window width -1611949332
err:x11drv:X11DRV_CreateWindow invalid window height -264947
fixme:ole:PropVariantCopy Invalid element type: 12l
fixme:advapi:CheckTokenMembership ((nil) 0x147618 0x34f9d0) stub!
fixme:advapi:CheckTokenMembership ((nil) 0x147618 0x34f9d0) stub!
Related articles
- Convert OpenXML documents in Windows using command line using OdfConverter
- Convert OpenXML (.docx, etc.) in Linux using command line using OdfConverter
- Zamzar .docx to .odt Converter Review
- odf-converter 1.1 released
- Install Free Office 2007 Fonts for Linux and XP
- Review: docx2rtf Document Converter
There are many ways to open OpenXML documents. I'll post more details soon. Subscribe so you don't miss them. :)
Comments
I was writing from a descriptive rather than prescriptive point of view. However, the end user does not care what type of object it is: he just cares about using it easily, so I suggest the embedded Excel object should become an object that Calc can seamlessly edit. Am I missing something?
Andrew
Did you have to do any special setup, or have anything else in particular installed to get this working?
I went into my File Types and set those types to open with OpenOffice.org 2.4, and now everything is cool again!
Go to www.update.microsoft.com. It will automatically pick up the updates required.
kral oyunoyunlaroyunlarkraloyunlaroyun
it really helps for me to solve my problem,
thanks,
Vijay
http://gOOgeo.blogspot.com
for the the xlsx i tried
c:\Program Files\Microsoft Office\Office12>excelcnv -oice c:\xl.xlsx c:\xl.xls
it gives out a xl.xls but its just the copy of my input xlsx file when i open that file in the office 2000 it gives error. i just renamed the xl.xls to xl.zip, now i can see the xmls inside. so it just created the copy of my input file and renamed it to xl.xls.
Any help on this highly appreciated.
Thanks
Well, no matter what we try (and we've been at it for ages) we cannot get the command line version of Microsoft's PPCNVCOM.EXE to work in XP or 2003 Server. Zilch, leaves you for dead, even with all the latest updates, security packs etc.
Does anyone have any idea how to get this thing working (Microsoft?) and does anyone know what the various switches mean?
Please save me from tearing out what's left of my hair! Thanks,
Steve.
Since then I have been searching for a description of the command line parameters with no success.
I would be grateful if you could point me to a comprehensive guide to these parameters.
Many thanks, Alan.
My computer came with a trial version of Office2007, so I could always read the docs but not convert them or even cut and paste content.
Once I had .xlsx spreadsheet on my desktop I easily saved it as a 2003 version, then opened with OOcalc. All formatting perfect, including set splits and formulas.
Awesome!
And of course I can save in MS format to send to those still chained.
When you put comments in Word documents (one of my favorite features), they show up inline in the text in OO. Given that most of my major documents are shuttled between team members for review, it is the one reason I can't switch.
The "GUI conversion" paragraph steps are not “precise”..!
Instead use these steps to easily convert, in example .docx to .doc: right mouse click on file >>> select “Save As” from menu >>> the “Save As” GUI dialog appears, same as on that screenshot >>> select “Save” >>> file is converted and .doc copy is saved in specified or the same directory. Easy!
I have a requirement where in I need to convert the docx files to doc files. So tried to use this exe - "Wordconv.exe" which accordingly -
"C:\Program Files\Microsoft Office\Office12\wordconv.exe" -oice -nme
I dont see any error message,no output,nothing. I wonder what is the problem. I also tried by downloading the latest windows updates from Windows.
Also,I tried this on a Windows server 2003 machine which also has the compatibility pack and Office 2007 installed the result is same.
Am I missing anything? any other switch or parameters.
Thanks in Advance,
Manjunath.
Command line like following:
"c:\Program Files\Microsoft Office\Office12\Wordconv.exe" -oice -nme test.doc test.docx
does conversion DOC->DOCX, but I need reverse one. In the article it was stated about DOCX->DOC. Microsoft changed this utility in it's KB and SP patches or it was like this from the very beginning? Is other command line parameters to do DOCX->DOC conversion?