Wie Sie zum erstellen von Microsoft.Office.Interop.Wort.Document-Objekt aus dem byte-array, ohne speichern auf der Festplatte?

Wie kann ich eine Microsoft.Office.Interop.Word.Document Objekt aus dem byte-array, ohne speichern auf der Festplatte mit 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;      
}
InformationsquelleAutor Masoomian | 2012-11-05
Schreibe einen Kommentar