TRVHtmlImporter and Standard styles

General TRichView support forum. Please post your questions here
Post Reply
martindholmes
Posts: 131
Joined: Mon Aug 29, 2005 12:03 pm

TRVHtmlImporter and Standard styles

Post 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
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

RvHtmlImporter.ClearDocument = False
martindholmes
Posts: 131
Joined: Mon Aug 29, 2005 12:03 pm

Post 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
Post Reply