Julian
Thanks for your reply.
I've both used the WPRichText1.InsertGraphicAsLinkDialog('Graphic Files|*.BMP;*.WMF') and the below code (both add the image with success).
Anyway my problem persists: everytime I add, for example, a 1 Mbytes image, 1 Mbytes mem usage is added to my application total mem usage. At the end if I add 200x 1 Mbytes images, my application crashes because of too much RAM being used. Basically I want to add a link to the image without adding the image itself (I want it to be drawn only). What is wrong with the below code?
Thanks, Andre
with wprichtext1 do begin
tablecolnumber:=1;
obj:=TWPOImage.create(wpRichText1);
obj.fileextension:='BMP';
obj.streamname:='d:\ext.bmp';
obj.WidthTW := round(obj.ContentsWidth/2);
obj.HeightTW := round(obj.ContentsHeight/2);
TextObjects.Insert(obj);
end;