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

Define the core components of an ASP.NET MVC application?

577


What is entitycontainer? : Entity framework

583


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

561


differences between poco, model first and data first approach?

598


How we can multiple submit buttons in ASP.Net MVC

635






Can you explain model, controller and view in mvc?

567


What is the use of action filters in an mvc application?

610


What is the difference between entity framework and mvc?

521


What is html.renderpartial?

569


What is entity framework firstordefault?

547


What is the version number for the next version of the .net framework, codenamed �orcas�?

485


Can I add mvc testcases in visual studio express?

594


what is use of entity container?

606


What is main objective of asp.net mvc 4 or what is new in mvc4 ?

603


What is the meaning of unobtrusive javascript?

560