var
listImage : TWPTextObjList;
count:Integer;
WPRichText : TWPCustomRtfEdit //( Passed in function call)
Record : IXMLNode;
begin
listImage := TWPTextObjList.Create;
WPRichText.ImageGetList(listImage,true);
count:=listImage.Count; //Returns Image count
Record.ChildNodes['RTF'].text := AWPRichText.RtfText.AsString;
Record.ChildNodes['RTF1'].text :=AWPRichText.AsANSIString('RTF');
//When saved as file, the above two node has only text and not images