Inside the TableCellCallBack function I would like to create an image
- I use the following code - however it DOESN'T work????
fBMP := Graphics.TBitmap.Create;
try
fBMP.LoadFromFile('C:\myImage.bmp);
wpobj := nil;
try
wpobj := TWPOImage.CreateImage(par.RTFData.DataCollection, fBMP);
obj := TWPTextObj.Create;
par.Insert(0, obj);
obj.ObjRef := wpobj;
obj.ObjType := wpobjImage;
obj.Width := 200;
obj.Height := 20;
except
FreeAndNil(wpobj);
end;
finally
FreeAndNil(fBmp);
end;
#1
♥ 0