2
Reply

Read bullet from Word File

Arun Saini

Arun Saini

Aug 18 2017 3:04 AM
148
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)