Answer Posted / anand
ApplicationClass WordOper = new ApplicationClass();
String filePath = Server.MapPath("../Files/Book.doc");
Object file = filePath;
object nullobj = System.Reflection.Missing.Value;
Document doc = WordOper.Documents.Open(ref file, ref
nullobj, ref nullobj,
ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj,
ref nullobj, ref nullobj, ref nullobj, ref nullobj,
ref nullobj, ref nullobj, ref nullobj, ref nullobj);
Document doc1 = WordOper.ActiveDocument;
string m_Content = doc1.Content.Text;
TextBox1.Text = m_Content;
doc.Close(ref nullobj, ref nullobj, ref nullobj);
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What operating systems will the .net framework 3.0 be available for?
How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?
mention what is the difference between ado.net and classic ado?
What are html helpers in asp.net mvc?
Explain Sections is ASP.Net MVC?
how do you mark a property as required? For example, for a project, the name is a required field.
What is the .net framework?
Difference between ASP.NET MVC and ASP.NET WebForms?
What are child actions in ASP.Net MVC?
Can I set the unlimited length for "maxjsonlength" property in config?
What does a viewmodel do?
How can we determine action invoked from HTTP GET or HTTP POST?
What is the use of action filters in an mvc application?
What are the new features 3.5 framework against with the tool?
Is entity framework slow?