So, if I understand you want something like this: http://html2rtf.codeplex.com/

On Feb 22, 4:38 am, web2py_lover <lia...@gmail.com> wrote:
> Thanks Massimo.
>
> I can save plain text into xxx.doc as your suggestion.
>
> But I want to save the content of textarea edited by tools such as
> wymeditor or tinyeditor. Keep formatted content only, but not
> including words such as <span> as following
>  "<span style="font-weight: bold;">abc</span>" using pyrtf.
>
> How can I do?
>
> On 2月21日, 下午10时26分, Massimo Di Pierro <massimo.dipie...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > yes. There are some example in the source and on 
> > thehttp://web2py.com/examples/default/examplespage
>
> > On Feb 21, 3:27 am, web2py_lover <lia...@gmail.com> wrote:
>
> > > I save content oftextareainto db.docas  following,
>
> > >  db.define_table('doc',
> > >    Field('title'),
> > >    Field('content', 'text'))
>
> > >  But how can I save this 'text' content into xxx.doc(as ms office
> > > format) for downloading?
>
> > > Can pyRTF do this thing, how to ? Thank you all.

Reply via email to