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 / tiger skumar

We can use the files concept to load the doc file content
into the textbox using the Multiline property.

we have many ways.This is one of the way.

using System.IO;


FileStream fstream = new
FileStream("Sample.doc",FileMode.Open,FileAccess.Read);
StreamReader sreader = new StreamReader(fstream);

txtFileContent.Text = sreader.ReadToEnd();


->change your Text Box Property into tghe multilien txtbox.

Is This Answer Correct ?    5 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is entitytypes? : Entity framework

991


What is .net architecture and framework?

992


what do you mean by navigation property?

1001


what is entityclient?

1079


What is representational state transfer (rest) mean?

940


What is the use of razor view engine?

926


Which version of .net framework is installed?

904


Describe the roles of clr in .net framework.?

1061


what is complex type?

963


What is the full form of sp?

926


how can you enhance the performance of entity framework?

1009


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

1079


how to disable the lazy loading framework?

1023


what is lazy loading in entity framework?

1038


What are bundling & minification features in asp.net mvc 4?

935