I just started a convert from an other editor to WPTools. Nearly all works fine, but images.
If I load HTML page the image only shows as border with a cross.
A long journey through the forum and the Internet doesn't bring any new ideas. I have downloaded the compiled WPTools demo. There the image is load correctly.
Are there an hints for me, how i can do it to work?
On save document as html the images that copy from clipboard aren't save.
//I use this code on OnPrepareImageforSaving
TextObject.Source := '';
if TextObject.ObjRef<>nil then
begin
TextObject.ObjRef.StreamName := '';
if(length(SaveHTMLFolder)>0) then
begin
inc(FHTMLImgNr);
TextObject.ObjRef.FileName :=
TextObject.ObjRef.SaveToFile(
SaveHTMLFolder,
Format('image%d', [FHTMLImgNr]), '' );
if(imageList=nil) then
imageList:=TStringList.Create;
imageList.Add(TextObject.ObjRef.FileName);
TextObject.ObjRef.FileName:=ExtractFileName(TextObject.ObjRef.FileName);
end;
end;
This Code is copied from WriteHTML Demo. There it works.
But I cant find the difference between it an my Application.