Need help for save and restore the page properties
Need help for save and restore the page properties
Please tell me,
What is the correct way to save and restore the document.
So that the document will be loaded as they would at least saving or leaved.
Andy
What is the correct way to save and restore the document.
So that the document will be loaded as they would at least saving or leaved.
Andy
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
For saving I use your suggested method. -> SaveRVF
For loading I have troubles:
With "SRVE.RichViewEdit.LoadRVF(FNAme)"
I get an exception out of maximun (-1)
class TCustomRVData; unit-> CRVData.pas
always on the second try , it works.
But with "rvActionsResource.rvActionOpen1.LoadFile" it worky always.
What is the difference ?
Andy
For loading I have troubles:
With "SRVE.RichViewEdit.LoadRVF(FNAme)"
I get an exception out of maximun (-1)
class TCustomRVData; unit-> CRVData.pas
always on the second try , it works.
But with "rvActionsResource.rvActionOpen1.LoadFile" it worky always.
What is the difference ?
Andy
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
When direct after: SRVE.RichViewEdit.LoadRVF(FileName);
I wrote this code
SRVE.SetMargin(SRVE.RichViewEdit.LeftMargin ,
SRVE.RichViewEdit.TopMargin ,
SRVE.RichViewEdit.RightMargin,
SRVE.RichViewEdit.BottomMargin);
Then all is fine.
But I have think my ScaleRichView-component make this automatically !
Or really not ?
I wrote this code
SRVE.SetMargin(SRVE.RichViewEdit.LeftMargin ,
SRVE.RichViewEdit.TopMargin ,
SRVE.RichViewEdit.RightMargin,
SRVE.RichViewEdit.BottomMargin);
Then all is fine.
But I have think my ScaleRichView-component make this automatically !
Or really not ?
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Unfortunately, SRVE cannot update margins automatically after calling SRVE.RichViewEdit.LoadRVF.
You need to call
Or you can call
You need to call
Code: Select all
SRVE.RichViewEdit.LoadRVF(...); // or LoadRTF
SRVE.SetRVMargin;
SRVE.Format;
Code: Select all
SRVE.LoadRVF(...);
SRVE.Format;