WPCubed Product Support

How do I save images when saving to HTM with WPT5

This is how I am saving to html now

Is this correct?

url:='c:\test.htm';
dbWPRichText1.TextSaveFormat := 'HTML';
dbWPRichText1.SaveToFile(url,false,'HTML');

This rtf I am saving contains a jpeg image and I want to be able to shhow that in the html page

How do I do that?

#1 ♥ 0
10.1k Views 2 users read 1 min

Pat

I don't think you need

dbWPRichText1.TextSaveFormat := 'HTML';

To save the image you need to use the OnPrepareImageForSaving event - Julian has a good example in his TBX demo

#2 ♥ 0
This category is archived. No new posts are possible.