trichview.support
Re: Loading RVF stream into richviewedit |
Author |
Message |
Sergey Tkachenko |
Posted: 04/30/2004 16:14:44 Code for loading data in trichview from database can be found in the demo Demos\Delphi\DB Demo\2 RichViewEdit\ How to create RichView at runtime: rv: TCustomRichView; rvs: TRVStyle; // creating rv := TCustomRichView.Create(nil); rvs := TRVStyle.Create; rv.Parent := Self; // it's necessary to assign parent! rv.Style := rvs; // setting options rv.Options := rv.Options+[rvoTagsArePChars]; rv.RVFTextStylesReadMode := rvf_sInsertMerge; rv.RVFParaStylesReadMode := rvf_sInsertMerge; rv.RVFOptions := rv.RVFOptions+[rvfoSaveTextStyles, rvfoSaveParaStyles, rvfoLoadBack, rvfoSaveBack, rvfoLoadLayout, rvfoSaveLayout]; rv.RTFReadProperties.TextStyleMode := rvrsAddIfNeeded; rv.RTFReadProperties.ParaStyleMode := rvrsAddIfNeeded; // load and save here ... // destroying rv.Free; rvs.Free; > hi, > I would like to create something which enables me to load files from > database and then load it to rve. If for example I have selected 5 files > from the database then I will create 5 rve for loading this file. After all > files have been loaded, I would like to export those file to HTML. All these > will be done in the back end where user will not see the created rve. What > is the best way to achieve this? I have done something to create the rve at > run time for each file but something i will get the error "Canvas does not > allow drawing". Any clue? > > best regards, > CY > > |
Powered by ABC Amber Outlook Express Converter