Comment créer de Microsoft.Bureau de.Interop.Mot.Document de l'objet à partir du tableau d'octets, sans l'enregistrer sur le disque?

Comment puis-je créer un Microsoft.Office.Interop.Word.Document objet de tableau d'octets, sans l'enregistrer sur le disque à l'aide de C#?

public static int GetCounterOfCharacter(byte[] wordContent)
{
   Application objWord = new Application();
   Microsoft.Office.Interop.Word.Document objDoc = new Document();
   //objDoc = objWord.Documents.Open(("D:/Test.docx"); i want to create document from byte array "wordContent"
   return  objDoc.Characters.Count;      
}

OriginalL'auteur Masoomian | 2012-11-05