Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is entitycontainer? : Entity framework

978


Is http stateful or stateless?

982


What are the possible razor view extensions?

951


Is razor a server side?

934


What are the 2 ways of adding constraints to a route?

955


What are advantages of Dependency Injection (DI) in ASP.Net MVC?

1049


What is the greatest advantage of using asp.net mvc over asp.net webforms?

970


How the ‘page lifecycle’ of ASP.Net MVC does works?

1082


What is the difference between model and entity?

980


What does mvvm mean?

916


What is the use of view model in asp.net mvc?

1084


What is ado.net data provider? : Entity framework

1006


how do you mark a property as required? For example, for a project, the name is a required field.

1013


Explain entity lifecycle? : Entity framework

1012


Which is the root namespace for fundamental types in .net framework?

962