Page 1 of 1

TRVHtmlImporter and Standard styles

Posted: Fri Mar 24, 2006 1:31 pm
by martindholmes
Hi there,

I'm using a TRVHtmlImporter component to import an HTML document into a TRichViewEdit. The associated TRVStyle component has nine text styles with Standard=True. However, once the import starts, these seem to be removed from the TRVStyle. I need to keep those standard styles. Why would they be removed when they're Standard? How can I preserve them?

Cheers,
Martin

Posted: Fri Mar 24, 2006 2:21 pm
by Sergey Tkachenko
RvHtmlImporter.ClearDocument = False

Posted: Fri Mar 24, 2006 4:37 pm
by martindholmes
Ah! That's it. I was assuming that making the styles Standard=True would prevent them from being cleared when the document is cleared. I can clear the document and the non-standard styles before importing.

Thanks,
Martin