Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionWord.Application wordObject = new Word.Application(); object file = @"C:\Documents and Settings\perso\Mes documents\Visual Studio 2010\Projects\test\test\bin\Debug\EssaieDeFichierWord.doc"; //this is the path object nullobject = System.Reflection.Missing.Value; object Faux = (object)false; object Vrai = (object)true; Document docs = wordObject.Documents.Add(ref file, ref Faux, ref nullobject, ref Vrai); docs.ActiveWindow.Selection.WholeStory(); docs.ActiveWindow.Selection.Copy(); IDataObject data = Clipboard.GetDataObject(); textBox1.Text = data.GetData(DataFormats.Text).ToString(); docs.Close(ref nullobject, ref nullobject, ref nullobject);