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 does a viewmodel do?

1140


Can you set the unlimited length for "maxjsonlength" property in config?

1034


Explain what is routing?

1036


What are child actions in ASP.Net MVC?

1113


what is model first approach?

1188


What is the role of the jit compiler in .net framework?

1164


How large is the .net framework 3.0?

1091


What are differences between entity framework and l2s? : Entity framework

1213


what is eager loading?

1069


Explain peek method in tempdata in asp.net mvc?

1168


What is the domain object?

1052


What is .net framework & its benefits?

1139


Explain linq to entities? : Entity framework

1099


Can we add constraints to the route? If yes, explain how we can do it?

1275


Explain the difference between Viewbag and Viewdata in ASP.NET MVC?

1085