To insert a image in WPTools4 I used the folliwing code:
MyImage.Picture.Assign(a TImage in a table);
TWOPImageLogo.Assign(MyImage);
WPRichText1.TextObjects.Insert(TWOPImageLogo);
* MyImage is a TImage object
With WPTools5 release 6, at runtime it throw this error message :'Cannot assign a TImage to a TWPOImage'.
If I replace TWOPImageLogo.Assign(MyImage); by
TWOPImageLogo.Assign(ImageRapport.Picture.Bitmap); it return nothing.
Does TWOPImageLogo.Assign is obsolete or it should work?