Re: Outputting MS word-friendly format

2007-12-20 Thread [EMAIL PROTECTED]
Hi Baxter, On Dec 19, 3:13 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Like the title says, I'd like to output a word-friendly format. > Obviously plain text is trivial, but I'd like to have a doc or at > least rtf format. Can anyone point me in the right direction? I've been messing ar

Re: Outputting MS word-friendly format

2007-12-19 Thread [EMAIL PROTECTED]
> Judging by the examples it looks like you need that Renderer class, > e.g.: > > DR = Renderer() > DR.Write(doc, response) > That got it. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: Outputting MS word-friendly format

2007-12-19 Thread J. Cliff Dyer
[EMAIL PROTECTED] wrote: > Thanks.. that's close, but I can't seem to get it to work properly > from within Django; > > They give an example like this: > def MakeExample1() : > doc = Document() > ss = doc.StyleSheet > section = Section() > doc.Sections.append( sect

Re: Outputting MS word-friendly format

2007-12-19 Thread Jan Rademaker
On Dec 19, 6:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks.. that's close, but I can't seem to get it to work properly > from within Django; > > They give an example like this: > def MakeExample1() : > doc = Document() > ss = doc.StyleSheet > sec

Re: Outputting MS word-friendly format

2007-12-19 Thread [EMAIL PROTECTED]
Thanks.. that's close, but I can't seem to get it to work properly from within Django; They give an example like this: def MakeExample1() : doc = Document() ss = doc.StyleSheet section = Section() doc.Sections.append( section ) section.append( 'A

Re: Outputting MS word-friendly format

2007-12-19 Thread hedronist
The short answer is that Django templates are format agnostic. They don't know anything about HTML so you can output pretty much anything that looks like text from a template. But if what you are returning is *not* HTML, remember to set the optional 'mimetype' param to HttpResponse. For example,

Re: Outputting MS word-friendly format

2007-12-19 Thread Jökull
A quick google returned this: http://pyrtf.sourceforge.net/ On Dec 19, 3:13 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Like the title says, I'd like to output a word-friendly format. > Obviously plain text is trivial, but I'd like to have a doc or at > least rtf format. Can anyone point

Outputting MS word-friendly format

2007-12-19 Thread [EMAIL PROTECTED]
Like the title says, I'd like to output a word-friendly format. Obviously plain text is trivial, but I'd like to have a doc or at least rtf format. Can anyone point me in the right direction? --~--~-~--~~~---~--~~ You received this message because you are subscribed