Hello
I am using dbrrichview with access database.
I setup all the margin configuration for my document and when I save it into my table I want to save all the margin configuration for it too. Is it possible?
Another thing
When I browse my table, it is possible to show my doc according as they were saved, with margin configuration.
thanks
Alex
How to save the margins configuration ?
-
- Site Admin
- Posts: 17572
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Include rvfoSaveLayout and rvfoLoadLayout in DBRichViewEdit.RVFOptions.
Note: when you change margins in code, follow the instructions from http://www.trichview.com/help/idh_examp ... edit1.html , e.g.
Note: when you change margins in code, follow the instructions from http://www.trichview.com/help/idh_examp ... edit1.html , e.g.
Code: Select all
if DBRichViewEdit1.CanChange then begin
DBRichViewEdit1.LeftMargin := 10;
DBRichViewEdit1.Change;
DBRichViewEdit1.Format;
end;
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm
-
- Site Admin
- Posts: 17572
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm
It is rvdbRVF.
Sergey,
is it possible you give me an example with your own example that uses table?
I noticed your component brings some database examples, but no one with ruler. It would be wonderful to have an example where the docs are kept with all margins configurated and when displayed the text, the ruler is settled at the right position when the text was produced.
thanks
Sergey,
is it possible you give me an example with your own example that uses table?
I noticed your component brings some database examples, but no one with ruler. It would be wonderful to have an example where the docs are kept with all margins configurated and when displayed the text, the ruler is settled at the right position when the text was produced.
thanks
-
- Site Admin
- Posts: 17572
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Just use DataSet.AfterScroll:
If it does not help, I'll create a demo.
Code: Select all
procedure TForm1.Table1AfterScroll(DataSet: TDataSet);
begin
RVRuler1.UpdateRulerMargins;
end;