Hi all, plz can any one help me in reading utf-8 from a Microsoft Document file I managed to read English text from a .doc file but now I need to read Arabic text a .doc file how can I do that ?
here is the code for reading English text Dim wordApp As Microsoft.Office.Interop.Word.ApplicationClass = New ApplicationClass() Dim file As Object = "C:\Users\DELL\Documents\test.doc" Dim nullobj As Object = System.Reflection.Missing.Value Dim doc As Microsoft.Office.Interop.Word.Document = wordApp.Documents.Open(file, nullobj, _ nullobj, nullobj, _ nullobj, nullobj, _ nullobj, nullobj, _ nullobj, nullobj, _ nullobj, nullobj) doc.ActiveWindow.Selection.WholeStory() doc.ActiveWindow.Selection.Copy() Dim data As IDataObject = Clipboard.GetDataObject() filecontents = data.GetData(DataFormats.Text).ToString()
