Arun Saini

Arun Saini

  • 1.1k
  • 296
  • 2.3k

Read bullet from Word File

Aug 18 2017 3:04 AM
Please give me code without https://www.e-iceblue.com .
 
Rightnow I'm using this code for read file .
 
object filename = @"E:\iPublishing\iPublishing\Uploads\Chapter9.docx";
Microsoft.Office.Interop.Word.ApplicationClass mswordappcls = new Microsoft.Office.Interop.Word.ApplicationClass();
Microsoft.Office.Interop.Word.Document msworddoc = new Microsoft.Office.Interop.Word.Document();
object isVisible = true;
object missing = System.Reflection.Missing.Value;
msworddoc = mswordappcls.Documents.Open(ref filename, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible);
string text = msworddoc.Content.Text;
return text;

Answers (2)