trichview.com

trichview.support




Re: Saving BMP's as PNG example


Return to index


Author

Message

Baliga, Narasimha

Posted: 09/22/2004 17:54:29


Basically, my application Saves RTF in SQL Server table (image type field).

So when I save it first I use RV.SaveRTFToStream and then save this Stream

using a BLOB field to the database. The first operation takes about 15

seconds and the second one takes about 20 seconds. Reverese logic is used

when we Load the content from database to RV component.


this happens only if we have embedded BMP's else it's very fast. So I am

trying to convert these embedded BMP's in to PNG's and save it, I tried

saving the content in to an RTF file and when I load this using WORD it

loads fine, but when I try to load the file in to RV component, it does not

load the images. Though I have written the following event, it never gets

called!


>  RichViewEditContent.RTFReadProperties.OnCustomImageItem :=

> RichViewEdit1CustomImageItem;


any ideas appreciated...


regards


Baliga

TSI



"Baliga, Narasimha" <[email protected]> wrote in message

news:[email protected]...

> Hi,

>

>  I tried the example which saves the RTF with bit maps as PNG's. all is

> fine while saving, but when I load this saved file the images seems to be

> missing

>

> I have written a procedure which reads PNG's, and on Form Create I assign

> the event as this

>

>  RichViewEditContent.RTFReadProperties.OnCustomImageItem :=

> RichViewEdit1CustomImageItem;

>

>

> Am I missing some thing?

>

> regards

> Baliga

>





Powered by ABC Amber Outlook Express Converter