I used the following code:
obj := TWPOImage.Create(RichText1.Memo.RTFData);
obj.LoadFromFile(ImageFileName);
RichText1.TextObjects.Insert(obj);
But only .bmp files are accepted. What should I do to permit the retrieval of jpg or gif files?
Also I use:
RichText1.TextLoadFormat := 'RTF';
RichText1.LoadFromFile(AFileName);
To open a file. If the file contains anything but a .bmp graphic, it will not open.
Can you help? I had no such problems with WPTools3, but the new version 5 is different.
Thanks,
--Bill
tavolga@aol.com