I modified the following properties and saved the file:
PageNoFromNumber
PageNoFirst
PageNoVisible
PageNoVAlign
PageNoHAlign
Later when I loaded the file, the properties were not altered. The srv does not update automatically these properties ?
or I have to update manually save / load them through the
RichViewEdit.DocProperties ?
if i have to do manually, exist topic in the help / manual that show which properties are not automatically saved in this case?
Thanks
docproperties
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I did not express right.
I has done the modifies that i reported before and the system show me the correct view. OK ?
Than i had saved that file. ok?
exemple:
PageNoFirst
´´ ´´
begin
Str:=EPageNoFromNumber.text;
ActiveEditor.PageProperty.PageNoFirst:=3;
FormEditor.ActiveEditor.RichViewEdit.SaveRVF(thefile);
´´´´
FormEditor.ActiveEditor.RichViewEdit.LoadRVF
ActiveEditor.PageProperty.PageNoFirst:=1; (why??)
´´´´
When i load the file, the system open the file whithout the changes i have done. (I thought that the system save that changes automatically)
is that a bug or i need to do anything else before save the file like
created respective procedures with the docproperties (save in tstringlist and read that when open the file) ?
Is that clear?
I has done the modifies that i reported before and the system show me the correct view. OK ?
Than i had saved that file. ok?
exemple:
PageNoFirst
´´ ´´
begin
Str:=EPageNoFromNumber.text;
ActiveEditor.PageProperty.PageNoFirst:=3;
FormEditor.ActiveEditor.RichViewEdit.SaveRVF(thefile);
´´´´
FormEditor.ActiveEditor.RichViewEdit.LoadRVF
ActiveEditor.PageProperty.PageNoFirst:=1; (why??)
´´´´
When i load the file, the system open the file whithout the changes i have done. (I thought that the system save that changes automatically)
is that a bug or i need to do anything else before save the file like
created respective procedures with the docproperties (save in tstringlist and read that when open the file) ?
Is that clear?
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
These properties are not saved in RVF.
You can implement saving them yourself using SRV.RichViewEdit.DocProperties (this property allows storing arbitrary string data).
We do not plan to implement saving these properties to files ourselves, because, they are a temporal solution. We plan to implement a page number field for insertion in header and footer.
You can implement saving them yourself using SRV.RichViewEdit.DocProperties (this property allows storing arbitrary string data).
We do not plan to implement saving these properties to files ourselves, because, they are a temporal solution. We plan to implement a page number field for insertion in header and footer.
As a suggestion you could comment on the topic of the help manual (scalerichview.chm) for class TSRVPageProperty which are automatically saved, and which properties are not saved informing that can be adjusted manually through edocpropertie.
So you and all customers are aware and save precious time.
Thanks.
So you and all customers are aware and save precious time.
Thanks.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Actually, TSRichViewEdit does not save any of PageProperty's subproperties.
Instead, it saves TSRichViewEdit.RichViewEdit.DocParameters.
But when you change a subproperty PageProperty, the corresponding subproperty of RichViewEdit.DocParameters (if it exists) is updated.
Currently, the following properties are saved (they exist both in PageProperty and RichViewEdit.DocParameters):
- LeftMargin, TopMargin, RightMargin, BottomMargin
- PageWidth, PageHeight, Orientation
- MirrorMargins, TitlePage, FacingPages
- HeaderY, FooterY
Instead, it saves TSRichViewEdit.RichViewEdit.DocParameters.
But when you change a subproperty PageProperty, the corresponding subproperty of RichViewEdit.DocParameters (if it exists) is updated.
Currently, the following properties are saved (they exist both in PageProperty and RichViewEdit.DocParameters):
- LeftMargin, TopMargin, RightMargin, BottomMargin
- PageWidth, PageHeight, Orientation
- MirrorMargins, TitlePage, FacingPages
- HeaderY, FooterY