views:

318

answers:

2

Sphinx supports a few output formats:

  • HTML separated files (with html or dirhtml)
  • Latex which is useful for creating .pdf or .ps
  • text

Instead I would like to obtain a Microsoft Word file. With other doc generator I managed generating the single html output and then converting it to the Microsoft Word format using the Word application.

Unfortunately I don't know a way to generate neither the word neither the HTML single page format.

Do you have any hints? I can't write a builder by myself.

A: 

I don't now what Sphinx is, but you could create a rtf file or html file or something similar.

See the following blogpost for more information/approaches : OFFICE AUTOMATION

and from there : How to use ASP to generate a Rich Text Format (RTF) document to stream to Microsoft Word

This article describes how you can generate Rich Text Format (RTF) files with ASP script and then stream those files to Microsoft Word. This technique provides an alternative to server-side Automation of Microsoft Word for run-time document generation.

You don't use ASP script (who does :-) ), but for the idea.

Alex
+1  A: 

The best option might be rst -> odt -> doc

Paul Biggar