Page 1 of 1

rvActions-Object Properties problem with images

Posted: Mon Mar 03, 2008 8:43 am
by vega
1) In RVEdit, I select an image inserted with rvActionInsertImage, I right-click it then choose 'Object Properties' and I change the image.

2) then I export with
RichViewEdit1.SaveHTMLToStreamEx(streamRVEHtml,'','','','','','',
[rvsoMiddleOnly, rvsoUseItemImageFileNames, rvsoImageSizes,
rvsoNoHypertextImageBorders, rvsoMarkersAsText, rvsoNoDefCSSStyle,
rvsoInlineCSS]);

3) The generated HTML retains and shows the old image but with the new image dimensions and other properties. Strange...

What am I doing wrong?

Thanks, Dan

Posted: Mon Mar 03, 2008 4:44 pm
by Sergey Tkachenko
In the previous versions of RichViewActions, TrvActionItemProperies did not change rvespImageFileName property of picture-items when the user chose another picture.
You include rvsoUseItemImageFileNames in the Options of SaveHTMLEx. Because of this options, picture-items with non-empty value of rvespImageFileName property are not saved to files, but value of this property is written in HTML instead.

You need to install the latest version of RichViewActions (v1.59) and set rvActionItemProperties1.StoreImageFileName = True.

Posted: Mon Mar 03, 2008 4:47 pm
by Sergey Tkachenko
Or you may cosider removing rvsoUseItemImageFileNames from Options of SaveHTMLEx. This property will not be used, all images will be resaved under generated names.

Posted: Tue Mar 04, 2008 8:18 am
by vega
Sergey Tkachenko wrote:... set rvActionItemProperties1.StoreImageFileName = True.
Yes, that did it. Thank you.