wiki:FactoryManual/StandardFactory/MSOSun

Version 3 (modified by monkeyiq, 3 years ago) (diff)

--

Factory Manual: MSOSun Backend

The MSOSun backend converts documents using Microsoft Office 2000 or 2003 and the Sun ODF plugin. It talks to Microsoft Office using the COM interface provided by the win32com and pythoncom packages.

This backend is highly experimental. It works on MS-Word but is almost guaranteed not to work on MS-Excel and MS-Powerpoint because the Sun plugin does not install itself as a standard input/output filter in those two applications. Unfortunately the Sun plugin for MS-Office does not work well alongside OpenOffice? 3 so I cannot develop and test it any further at the moment.

Prerequisites

Download the most recent version of Python 2.7 for Windows. During the install wizard, you might like to select the last option to include python in your PATH by default.

In order to use this backend you need to install a few prerequisites:

  • Download the pywin32 package for the Python version (2.7) selected above. The comes with an installation wizard which should find your installed python and install pywin32 to be used with it. Make sure you get the 64 bit version if you installed the 64 bit version of python. You can see if you have 64 bit python by running python from the command line.

Example configuration

Note that the configure-backend.py script has support for detecting your version of Word and should enable the below configuration for you automatically. See the Quickstart for more information on using the configure-backend.py script.

Here is an example configuration to provide ODF round-trip and PDF output for MS-Office 2000.

[global]

backends = word, <other backends>

<rest of the global settings skipped>

[word]
application = Microsoft Office (Sun plugin)
version = 2000 SP3
doctype = odt
formats = odf,pdf
backend = MSOSun