Skip to main content
Mar 1, 2010 7:49 AM UTC
Question

how to read data from word document in to richtext?

it can read from txt but couldnt read from a word document:s  how can i do this?

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

3 replies

Adobe Employee
Mar 2, 2010 6:13 AM UTC

You could try saving the Word document as plain text or html, and then importing that. We don't read the Word file format directly, I'm afraid.

Thanks,

- robin

Translate
Mar 3, 2010 9:40 AM UTC

plain text doesnt solve my problem..

i tried to import html document, but couldnt. how can i load an external html file in to my project?

i tried lots of codes, they didnt work..

thanks,

Translate
Adobe Employee
Mar 6, 2010 12:55 AM UTC

TLF doesn't have a generic HTML importer. There is one that works with the html used by TextField. To use it, try something like this:

var htmlString:String =  '<p>Paragraph here</p>';

var textFlow:TextFlow = TextConverter.importToFlow(htmlString, TextConverter.TEXT_FIELD_HTML_FORMAT);

- robin

Translate