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
What is entitycontainer? : Entity framework
Is http stateful or stateless?
What are the possible razor view extensions?
Is razor a server side?
What are the 2 ways of adding constraints to a route?
What are advantages of Dependency Injection (DI) in ASP.Net MVC?
What is the greatest advantage of using asp.net mvc over asp.net webforms?
How the ‘page lifecycle’ of ASP.Net MVC does works?
What is the difference between model and entity?
What does mvvm mean?
What is the use of view model in asp.net mvc?
What is ado.net data provider? : Entity framework
how do you mark a property as required? For example, for a project, the name is a required field.
Explain entity lifecycle? : Entity framework
Which is the root namespace for fundamental types in .net framework?