reading doc file in textbox using .net2005 with c#
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
Does Tempdata hold the data for other request in ASP.Net MVC?
what do you mean by table-per-type?
What is the need of Action Filters in ASP.Net MVC
Explain the use of Inversion of control (IOC)?
Does windows 10 need .net framework?
What is the .net framework 3.0 (formerly winfx)?
Explain the advantages of dependency injection (di) in asp.net mvc?
Is it possible to create a custom filter?
How we can multiple submit buttons in ASP.Net MVC
Can any particular component of .net framework 3.0 be removed?
What are the advantages of mvc over asp.net?
Explain the new features added in version 4 of mvc (mvc4)?
what is entity data model?
What happens when I install the .net framework 3.0? How can I upgrade if I already have the .net framework 2.0 installed?
Does razor engine supports for tdd?