Share via

Word Shape.ConvertToShape() Method Error: The call to the COM component returned the error HRESULT E _ FAIL

zhouke 0 Reputation points
2023-11-21T01:43:45.6233333+00:00
var shapes = document.InlineShapes.AddPicture(path, ref missing, ref missing, ref range);
var shape = shapes.ConvertToShape();
Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Word | For business | Windows

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.