docproperties

General TRichView support forum. Please post your questions here
Post Reply
RobertoVG
Posts: 40
Joined: Fri Mar 15, 2013 8:35 pm

docproperties

Post 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
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

For TSRichViewEdit, modify the corresponding properties of TSRichViewEdit.PageProperty.
TSRichViewEdit.RichViewEdit.DocParameters may be overriden.
RobertoVG
Posts: 40
Joined: Fri Mar 15, 2013 8:35 pm

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
RobertoVG
Posts: 40
Joined: Fri Mar 15, 2013 8:35 pm

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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
Post Reply