I have an application working with MS Word (2007) OleContainer in Delphi 10.2. I copy/paste an image on it with following command:
Copy:
vBmp:=iAssinatura.Picture.Bitmap;
Clipboard.Assign(vBmp);
Clip:=1;
Paste:
dm.WordApp.ActiveDocument.ActiveWindow.Selection.Paste;
(I tryed this as well: dm.WordApp.Selection.Paste;
)
However, when the PC runs MS Word 2016 or higher, paste commands (both above) return the following errors: "The remote procedure call failed" and "RPC server is unavailable"
I tryed declare Uses Office2010 and Word20100 instead Office2000 and Word2000, but without success. Has anyone experienced this problem and could help me to fix it?