NetOfficeFw / NetOffice

🌌 Create add-ins and automation code for Microsoft Office applications.
MIT License
697 stars 143 forks source link

Word.Shape.TextFrame.HorizontalAnchor throw exception #246

Closed daihy8759 closed 2 years ago

daihy8759 commented 5 years ago
Word.Shape.TextFrame.HorizontalAnchor = MsoHorizontalAnchor.msoAnchorCenter;

throw exception:

HRESULT:0x80020006 (DISP_E_UNKNOWNNAME))"} | System.Exception {System.Runtime.InteropServices.COMException}