Re: MS word document generator

2006-03-23 Thread Raja Raman Sundararajan
Hi paron, I am using PyRTF as of now and it seems to fit my need quite well and it works like a charm :-). I have made a wrapper around it so that it will easier for me to switch the backend for generating the word/RTF docs later. May be, it will be openoffice :-) I appreciate your input. Thank

Re: MS word document generator

2006-03-16 Thread paron
You might also consider OpenOffice, which writes to ODF. That way, you're working to a standard. You can script OpenOffice in Python (http://udk.openoffice.org/python/python-bridge.html) . OpenOffice can save in .doc, and does a pretty good job of making a file that most MS Word versions will rende

Re: MS word document generator

2006-03-16 Thread M�ta-MCI
Hi! Yes, I have an idea. But... I has no time, actually. Perhaps in 2 or 3 weeks... Sorry. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: MS word document generator

2006-03-15 Thread Grant Edwards
On 2006-03-15, Sybren Stuvel <[EMAIL PROTECTED]> wrote: > Raja Raman Sundararajan enlightened us with: >> Well, Office 12 will have very many features. Thats true. >> But my document needs to work in all versions of Office. >> I hope that pyRtf generated file is fully rtf compatible. :-) > > Oh co

Re: MS word document generator

2006-03-15 Thread Sybren Stuvel
Raja Raman Sundararajan enlightened us with: > Well, Office 12 will have very many features. Thats true. > But my document needs to work in all versions of Office. > I hope that pyRtf generated file is fully rtf compatible. :-) Oh come on. Even Word files don't work in all versions of Office. Sy

Re: MS word document generator

2006-03-15 Thread Raja Raman Sundararajan
Hi Michel, Well, Office 12 will have very many features. Thats true. But my document needs to work in all versions of Office. I hope that pyRtf generated file is fully rtf compatible. :-) But so far I think it is quite okay. To answer my first question: > 1. do an align right of contents inside

Re: MS word document generator

2006-03-15 Thread M�ta-MCI
Hi! The next MS-Office come with a new format of document, based on XML+Zip. But MS-Word can read, now, a XML file. Perhaps you can use this way. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: MS word document generator

2006-03-15 Thread M�ta-MCI
Hi! PyRTF is old, but run OK. I use it, with some little modifs, for another usage. It was good to remember it. MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: MS word document generator

2006-03-15 Thread Raja Raman Sundararajan
Hi guys, Thanks for your note Grant. I had a look at the pyRTF and it seems to be quite impressive :-) I actually works for my needs except the below, concerning cells in a table For cells in a table, pyRTF does not support 1. ALIGN_RIGHT 2. Cell background Do you guys have any idea of how to

Re: MS word document generator

2006-03-15 Thread Grant Edwards
On 2006-03-15, Raja Raman Sundararajan <[EMAIL PROTECTED]> wrote: > Is there any nice library to generate word documents using Python. I find the following works well for me: f = open("file.doc") f.write("Hello there.\n") f.write("How are you?\n") f.close() > As of today I am generating a HTML

Re: MS word document generator

2006-03-15 Thread Raja Raman Sundararajan
Hi Tim, Thanks for your PyRTF suggestion. I am checking it out now :-) /R -- http://mail.python.org/mailman/listinfo/python-list

Re: MS word document generator

2006-03-15 Thread Tim Churches
Raja Raman Sundararajan wrote: > Hello guys, > Is there any nice library to generate word documents using Python. > > As of today I am generating a HTML document and then open it with MS > Word. > But the problem is that I am not able to control the pages in the > document and as a result of i

Re: MS word document generator

2006-03-15 Thread Max M
Raja Raman Sundararajan wrote: > I was wondering if there was any library as reportlab to generate word > documents. If you are on Windows, why dont you use word for it? You can call it from Python. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +45 66 11 84 94