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 are the difference between asynchronous controller implementation between asp.net mvc 3 & asp.net mvc 4?

583


What is the .net framework and how does it work?

557


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

590


i have done enough testing in life but now stated developing intereset in development work,Can i think of entering into development work that too in >Net after more then 4 years of testing experiece?

1746


Explain entity lifecycle? : Entity framework

543






Explain the tools used for unit testing in ASP.Net MVC

598


Is .net framework 4.8 the last version?

528


What are the advantages of mvc over asp.net?

558


what is model first approach?

603


What is the advantage of using asp.net routing?

591


will there be any issues adding a table without primary keys to a data model?

602


What are scaffold templates in mvc?

576


What is mapping in entity framework? : Entity framework

515


what is msl?

624


Difference between ASP.NET MVC and ASP.NET WebForms?

562