Problem data volume!!

General TRichView support forum. Please post your questions here
Post Reply
Ceprotec
Posts: 259
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Problem data volume!!

Post by Ceprotec »

Sergey Tkachenko Hi! How are you?

Because of my need to save all documents that are printed through the RichView, I'm having a problem with the large volume (size) that is generating due to utilization of images. I record everything that is printed in database SQL Server 2000 in a binary format. The RichView sends as SaveRVFToStream, but the problem is the images contained. Would not choose to have the text was only saved along with the variables and their tasks, but separating the images. I do not need to save the images in the database, somet text. Would?
Ceprotec
Posts: 259
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Post by Ceprotec »

He also served as if it had to burn the body of the text without header ..???
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

1) May be the problem can be solved if you change format of images. If they are bitmaps, you can convert them to PNG.

2) You can exclude rvfoSavePicturesBody from RVFOptions property. In this case, images will not be saved in RVF. Instead, when loading, OnRVFPictureNeeded event will occur.
Example can be found in demos: Assorted\Graphics\ShareImages\
Ceprotec
Posts: 259
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Post by Ceprotec »

I'm having trouble manipulating events RichViewEdit. I need to power through code change between saving image or not, ie RVFOptions, property rvfoSavePicturesBody need for code to put false or true .. how do I get this property to true or false?
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Including this option:
RichViewEdit1.RVFOptions := RichViewEdit1.RVFOptions+[prvfoSavePicturesBody];
Excluding this option:
RichViewEdit1.RVFOptions := RichViewEdit1.RVFOptions-[prvfoSavePicturesBody];
Ceprotec
Posts: 259
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Post by Ceprotec »

Thank you. :D
Post Reply