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
Can I use razor code in javascript in asp.net mvc?
What is the mvc pattern (model view controller pattern)?
What are ajax helpers in asp.net mvc?
What does a viewmodel do?
mention what are the various methods provided by the dataset object to generate xml?
Is it possible to combine asp.net webforms and asp.mvc and develop a single web application?
Explain test driven development (tdd) ?
List the new features added in .net framework 4.0.
What is razor code?
What is the domain object?
What is entitycontainer? : Entity framework
What is .net architecture?
What you mean by routing in mvc?
What are the Core features of ASP.NET MVC?
Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?