trichview.com

trichview.support




Re: OnHTMLSaveImage


Return to index


Author

Message

Sanjay

Posted: 04/03/2002 12:33:47


Hi Sergey,


  Thanks for the reply, one more question - I would like to save the image

in the rvf field as well as store it in another table. If I set rvfoSavePicturesBody

= False, then rvf will not store images and if I set it to True then I get

a TJpeg error!. Can I store it both ways i.e have the cake and eat it too

:)


sanjay


"Sergey Tkachenko" <svt@trichview.com> wrote:

>OnHTMLSaveImage occurs only when exporting to HTML (not when saving to RVF).

>

>Parameters of this event:

>

>Input parameters:

>

>RVData and ItemNo - define a position of saved image in the document.

>You can get information about saved item using

>RVData.GetItemStyle(ItemNo), and depending on its results,

>with RVData.GetPictureInfo(ItemNo, ...) or RVData.GetBulletInfo(ItemNo,

..)

>

>Path - a path where HTML is stored (not including file name)

>

>Background color - color under the image

>

>Output parameters:

>

>Location - will be saved in HTML (quoted)

>You can return

>'photo.asp?ID=4173513'

>or (a trick!)

>'photo.asp?ID=4173513" align="left'

>

>DoDefault - if you save image yourself, you must set it to False.

>

>Trial version always store align attribute. My current version does not

>store it if alignment=baseline, so it will be possible to set it to values

>unsupported by RichView.

>

>As for saving images in external storage - exclude rvfoSavePicturesBody

from

>RVFOptions.

>

>

>> I am using a demo version of TDBRichViewEdit. What I plan is, to save

the

>> images in the rvf in another table in the database. I would like to modify

>> the <IMG align=baseline src="img10.jpg"> and place my own url (something

>> like <img src=photo.asp?ID=4173513 align=left>). I think I might have

to

>> use itemno property of that event, but that's the only clue I have got.

>Could

>> anyone give me a direction on how to solve this

>>

>> thanks

>> sanjay

>

>





Powered by ABC Amber Outlook Express Converter