[Demo] How to use DocObjects

Demos, code samples. Only questions related to the existing topics are allowed here.
Post Reply
Sergey Tkachenko
Site Admin
Posts: 14377
Joined: Sat Aug 27, 2005 10:28 am
Contact:

[Demo] How to use DocObjects

Post by Sergey Tkachenko » Sat Jan 26, 2019 2:23 pm

TRichView.DocObjects - a collection of objects that can be stored in RVF documents (in addition to strings stored in DocProperties and properties stored in DocParameters).

TRichView itself uses DocObjects to store:
1) common information about equations (such as a default font name)
2) in Report Workshop, common report properties

This demo shows how to store your own objects in RVF documents:
SampleDocObjects.zip
(20.83 KiB) Downloaded 31 times

It stores two objects. The first object contains a picture, the second object contains a text and a date.
The demo shows that these objects are stored in RVF by saving a document and loading in another editor.
SampleDocObjects.png
SampleDocObjects.png (122.04 KiB) Viewed 1176 times

Sergey Tkachenko
Site Admin
Posts: 14377
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: [Demo] How to use DocObjects

Post by Sergey Tkachenko » Sat Jan 26, 2019 3:16 pm

The same demo for C++Builder 10.3 Rio:
Attachments
SampleDocObjectsCpp.zip
(74.84 KiB) Downloaded 26 times

AndreMurta
Posts: 8
Joined: Tue Nov 25, 2014 5:55 pm

Re: [Demo] How to use DocObjects

Post by AndreMurta » Sat Jan 26, 2019 7:31 pm

Thanks Sergey.

Post Reply