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
How we can add the CSS in ASP.Net MVC?
What is Area in ASP.Net MVC?
How large is the .net framework 3.0?
i just want to write an exam regarding .net?plz give me information about taking a test?where to pay 4 d exam,exam centre?
Is .net core replacing .net framework?
What is entity framework? : Entity framework
Explain how you can send the result back in JSON format in MVC?
What is needed for running an application built on winfx on the .net framework 3.0?
What is the .net framework?
what is ssdl?
What is .net architecture and framework?
What are the new enhancements done in default project template of asp.net mvc 4?
What is the difference between partial and renderpartial?
why DotNetFramework is included in building a software
What is entityset? : Entity framework