Hello Sergey,
When I chance this option in DBSrichViewEdit - PageProperty - Orientation from poPortrait to poLandScape, didn't it save the change in my doc (db) so that next time when I open the same doc the doc comes wth my change?
I added a checkbox in my form that only change this:
if ck_orientation.checked = true then
DBSRichViewEdit1.PageProperty.Orientation := poPortrait
else
DBSRichViewEdit1.PageProperty.Orientation := poLandScape
thanks
Alex
changing the DBSrichViewEdit - pageProperty - orientation
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Use the same method as for TDBRichViewEdit
Code: Select all
if DBSRichViewEdit1.RichViewEdit.CanChange then begin
if ck_orientation.checked = true then
DBSRichViewEdit1.PageProperty.Orientation := poPortrait
else
DBSRichViewEdit1.PageProperty.Orientation := poLandScape
DBSRichViewEdit1.RichViewEdit.Change;
DBSRichViewEdit1.Format;
end;
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: