rvActions-Object Properties problem with images

General TRichView support forum. Please post your questions here
Post Reply
vega
Posts: 50
Joined: Fri Oct 26, 2007 6:29 am

rvActions-Object Properties problem with images

Post 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
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
vega
Posts: 50
Joined: Fri Oct 26, 2007 6:29 am

Post by vega »

Sergey Tkachenko wrote:... set rvActionItemProperties1.StoreImageFileName = True.
Yes, that did it. Thank you.
Post Reply