Page 1 of 1
docproperties
Posted: Sat Aug 03, 2013 8:10 pm
by RobertoVG
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
Posted: Mon Aug 05, 2013 6:25 am
by Sergey Tkachenko
For TSRichViewEdit, modify the corresponding properties of TSRichViewEdit.PageProperty.
TSRichViewEdit.RichViewEdit.DocParameters may be overriden.
Posted: Mon Aug 05, 2013 3:48 pm
by RobertoVG
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?
Posted: Mon Aug 05, 2013 4:28 pm
by Sergey Tkachenko
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.
Posted: Thu Aug 08, 2013 3:15 pm
by RobertoVG
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.
Posted: Thu Aug 08, 2013 4:52 pm
by Sergey Tkachenko
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