Store properties within the document (I need some advice)

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
Tavo
Posts: 175
Joined: Sat Sep 24, 2005 9:25 pm
Location: Buenos Aires, Argentina
Contact:

Store properties within the document (I need some advice)

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

Post 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.
Tavo
Posts: 175
Joined: Sat Sep 24, 2005 9:25 pm
Location: Buenos Aires, Argentina
Contact:

Post by Tavo »

Thanks Sergey!!!!
Post Reply