trichview.com

trichview.support




Re: OnRVFPictureNeeded event


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/03/2002 23:31:36


It depends on where you store this text :)

You have two options for this:

- store it in the image name (a first parameter of

InsertPicture/AddPictureEx)

Image name is not used by the component itself, you can use it as you wish

(but it should not contain #13, #10 and #0 characters)

Image name is passed as the Name parameter of OnRVFPictureNeeded.

Image name is always stored in RVF, even if image itself is not stored (i.e.

if rvfoSavePicturesBody is not in RVFOptions)

- another option is tag. Do not confuse RichView item's tag with HTML tag!

RichView tag is an additional value associated with each item.

It can store a string or an integer depending on Options.

If you use image names for another purposes, you can use tag to store your

text.

Please read "Tags of TRichView" topic in the help file.


PS: when you implement this functionality for pictures inserted by yourself,

you'll need to take special actions for pictures that inserted in documents

without your participation (for example, pasted from the clipboard and

inserted from RTF), if you want to store them in your database too.


>

> in OnRVFPictureNeeded event, how do I get the text of the <img

src=photo.asp?ID=101

> Align=left> tag. I want to use the value of the ID to look up the database

> for the image. I am bit confused about the 'tags' , can I use it somehow

> to get the text?

>

> thanks

> sanjay





Powered by ABC Amber Outlook Express Converter