Skip to main content
Jul 18, 2011 4:51 PM UTC
Question

is there a way to send content of textflow to ms word with same format

i want a way to send  content of textflow to ms word with same format

i think with

Clipboard.generalClipboard.setData  and RICH_TEXT_FORMAT withe code

which p.getText() is text of paragraph (p)

Clipboard.generalClipboard.setData(ClipboardFormats.HTML_FORMAT,p.getText() );

but i get error

how can i solve this problem

thanks in advance

This topic is closed to new replies. Start a new post to keep the conversation going.

9 replies

Adobe Employee
Jul 19, 2011 1:45 AM UTC

Have a look at my reply in http://forums.adobe.com/thread/878480?tstart=0

Translate
Jul 19, 2011 5:18 AM UTC

mr Jin-Huang thanks for your time

your answer is about how to make custom convert to text flow but not to convert to rtf markup

my question is

how can i convert to rtf markup ?

or if i misunderstand can you explain more

Translate
Adobe Employee
Jul 19, 2011 5:36 AM UTC

If you want copy formatted text to MS Word, you need to give  MS Word rtf markup, because Word can recognize rtf markup but not tlf  markup.

However, tlf has no tlf-rtf converter for now. So if you know well about both tlf and rtf, you can convert tlf to rtf by yourself.

Translate
Jul 18, 2011 8:53 PM UTC

i think there is no answer

i googeld about it

found nothing

Translate