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
> 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
[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
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
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
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,
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
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
8 matches
Mail list logo