Page 1 of 1

Store properties within the document (I need some advice)

Posted: Fri Jun 03, 2016 4:23 pm
by Tavo
Hello!
I want to store some properties inside the document:

TSRVPageProperty.PageNoVAlign
TSRVPageProperty.PageNoFromNumber
TSRVPageProperty.PageNoFirst

I need an advice. What is the best way to store the properties within the document? ¿In DocProperties?

Thanks for readme.

Posted: Fri Jun 03, 2016 10:45 pm
by Sergey Tkachenko
First, I do not recommend using these properties. They were introduced when ScaleRichView did not support headers and footers, and page number fields in headers and footers.
In the new version, you can insert page number and page count fields in headers and footers, and hide page numbers defined in PageProperty.

If you still want to store them, you have two options:
1) Yes, DocProperties, you need to encode and decode these properties to a string list
2) In the newest version (available for registered users), there is one more option: DocObjects. Create your item class inherited from TRVDocObject, implement published properties, add object of this class to this collection, and it will be stored in RVF.

Posted: Mon Jun 06, 2016 6:32 pm
by Tavo
Thanks Sergey!!!!