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 objectset? : Entity framework
Can we change web.config settings from iis?
Why is the .net framework 3.0 a major version number of the .net framework if it uses the .net framework 2.0 runtime and compiler?
What is entity sql? : Entity framework
How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?
What is razor code?
What is edm in entity framework?
Will there be a .net compact framework 3.0 release with release of .net framework 3.0?
What is object service? : Entity framework
what is csdl?
What is meant by tempdata in mvc?
Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?
In razor syntax, what is the escape sequence character for @ symbol?
what is entity sql?
Explain the types of Scaffoldings.