public string Test(string path) { Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application(); object file = path; object nullobj = System.Reflection.Missing.Value; Document doc = wordApp.Documents.Open(ref file, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj); string result = doc.Content.Text.Trim(); doc.Close(); return result; }
Error 2 No overload for method 'Open' takes '12' arguments Error 3 No overload for method 'Close' takes '0' arguments
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)