trichview.support
Here is the problem! |
Author |
Message |
Mamouri |
Posted: 04/28/2003 10:48:06 Hi! In fact the problem was not from DBISAM. I understand why this problem occure. Let's see my code: // Adding New Style with RVStyle1.TextStyles do begin Add; Items[Count].FontName := 'Tahoma'; Items[Count].Jump := True; Items[Count].BackColor := clBlue; end; // Replace All "Text" with new style while not DBRichViewEdit1.SearchText('Text', [rvseoDown]) do DBRichViewEdit1.ApplyTextStyle(RVStyle1.TextStyles.Count); In this code I add a new style and use it to replace a special text to this style! But The new style dont save to Database. so this new stle become invaliec (I used "Allow adding styles dynamically" method too) If I check "Convert invalid style indicates to 0" in "RVF" tab of Settings then I dont see RVF File format inside DBRichViewEdit! But the new style lost, too! I dont know is Am I forgot a thing or there is a bug in TRichView! Regards "Mamouri" <Mamouri@ganjafzar.com> wrote: > >OK! >Of course I change approach! and my problem solved. > >But Now I send a simple project via mail! > > >"Sergey Tkachenko" <svt@trichview.com> wrote: >>I did not work with DBISAM seriously, but I tried to make some demo and >it >>worked ok. >> >>If DBRichView displays contents of field "as is" (as text), this means that >>RVF loading failed. >>It can be because of incorrect settings (for example, not saving modified >>collection of styles with document) or because of corruption of data in >the >>field. >> >>Can you create a simple project to reproduce this problem? >> >>> >>> Dear Sergey >>> But problem dont solved. does this problem from DBISAM or TRichView? Are >>> you know? >>> >>> Thanx >>> >>> "Sergey Tkachenko" <svt@trichview.com> wrote: >>> >1) Make sure that "allow adding styles dynamically" is set in the >>component >>> >editor of DBRichViewEdit (right click in Delphi, menu "Settings") >>> >2) Try to exclude rvfoSaveBinary from RVFOptions. Does it fix the >>problem? >>> > >>> > >>> >> >> > |
Powered by ABC Amber Outlook Express Converter