http://www.trichview.com/support/files/ ... dac_ib.zip
2) This demo uses BDE:
http://www.trichview.com/support/files/ ... mo-bde.zip
TRichView 17.3 or newer is required.
These demos show how to use the rvfoSaveStyleTemplatesOnlyNames option.
Basically, these are ActionTest demos, but they use TDBRichViewEdit, so all file-related actions are deleted, and TDBNavigator is added.
rvfoSaveStyleTemplatesOnlyNames is included in DBRichViewEdit.RVFOptions.
In this demo, StyleTemplates are applied to all records in the table. If you change them (menu "Format | Styles"), these changes are applies to all documents in all records.
On start, the demo loads StyleTemplates:
Code: Select all
RVStyle1.StyleTemplates.LoadFromRVST(ExtractFilePath(Application.ExeName)+'DBDemo.rvst',
RVStyle1.Units);
Code: Select all
RVStyle1.StyleTemplates.SaveToRVST(ExtractFilePath(Application.ExeName)+'DBDemo.rvst',
RVStyle1.Units);
Code: Select all
procedure TForm3.Table1AfterScroll(DataSet: TDataSet);
begin
RVRuler1.UpdateRulerMargins;
RichViewEdit1.CurTextStyleChange;
RichViewEdit1.CurParaStyleChange
end;