trichview.com

trichview.support




Re: OnHTMLSaveImage


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/02/2002 21:59:05


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