Skip to main content
March 1, 2010
Question

how to read data from word document in to richtext?

  • March 1, 2010
  • 1 reply
  • 719 views

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

This topic has been closed for replies.

1 reply

Adobe Employee
March 2, 2010

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

March 3, 2010

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,

Adobe Employee
March 6, 2010

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