NetOfficeFw / NetOffice

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

Office 2016 Version 1908, Selection.Fields.Count = 0 when selection range is a Field #252

Closed GuoHuiChen closed 5 years ago

GuoHuiChen commented 5 years ago

using (Selection selection = _app.Selection) {

            if (selection.Fields.Count == 0) {
                    LoggingService.Info("selection.Fields.Count = 0, No Action.");   【1908 BUG】
                    return null;
                }

Office 2016 previous version is OK Office 2010, 2013 is OK 1908 VBA OK Selection.Fields.Count = 1 It's NetOffice Bug? WordApi.dll 1.7.3.0

GuoHuiChen commented 5 years ago

VBA Is also return 0

GuoHuiChen commented 5 years ago

It's Office BUG