trichview.support
Re: Any way to clear contents in RichView (not edit!) viewer |
Author |
Message |
dk_sz |
Posted: 02/16/2003 21:05:43 > RichView.Clear DOES clear the document (deletes all items). > It requres to call Format after it (as well as LoadRTF) Ahh, now I see. I read in the help (after the long list of what it does not do :-) "This method turns off displaying soft page breaks." But now I see that at the very top help states "Clears document (deletes all items)". It works now - thanks! > By the way, try ... except is not required around LoadRTF - it never throws > an exception (it returns False in case of error) Mmm... It did when I tryed (when running in IDE anyway): "RichView.LoadRTF('');" -- EFOpenError: "cannot open file". In unit "classes", line 5031 (D6 all update packs + RTL updates). CallStack: - TFileStream.Create('', 0); - TFileStream.Create('', 0, 00); best regards Thomas Schulz |
Powered by ABC Amber Outlook Express Converter