Store properties within the document (I need some advice)

Public forum for discussing TScaleRichView (shareware addon to TRichView providing WYSIWYG editing)
Post Reply
Tavo
Posts: 114
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 » Fri Jun 03, 2016 4:23 pm

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: 13586
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Fri Jun 03, 2016 10:45 pm

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: 114
Joined: Sat Sep 24, 2005 9:25 pm
Location: Buenos Aires, Argentina
Contact:

Post by Tavo » Mon Jun 06, 2016 6:32 pm

Thanks Sergey!!!!

Post Reply