trichview.support
Re: Image file name |
Author |
Message |
Sergey Tkachenko |
Posted: 04/13/2004 23:17:10 Hi, First, since v1.8.4 there is a possibility to define a file name for image. Inside OnHtmlSaveImage, you can get it (in variable s) as RVData.GetItemExtraStrProperty(ItemNo, rvespImageFileName, s); where RVData and ItemNo are parameters of the event. (do not forget to check if this is really an image item. (RVData.GetItemStyle(ItemNo)=rvsPicture) or (RVData.GetItemStyle(ItemNo)=rvsHotPicture) It can be other item (such as table) or even non-item, if ItemNo=-1.) Or you can simply include rvsoUseItemImageFileNames in the Options of SaveHTML. Image will not be saved at all, but the string specified as rvespImageFileName property will be written in HTML. > hi, > I have tried out the onsaveimage2 and onhtmlsaveimage, but i can't figure > out how can I set the file name with the actual file name in the HTML > source. > > i want this <IMG src="123.files/img1.jpg"> to become this <IMG > src="123.files/myfile.jpg"> which the myfile is the name of the inserted > image. > > |
Powered by ABC Amber Outlook Express Converter