Can Microsoft.Office.Interop.Word be used in UWP or .net Core?
Line execution:
Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.In