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 the advantage of mvc?

793


Mention two instances where routing is not implemented or required?

930


what is code first approach?

783


What is entity framework firstordefault?

716


Is .net framework backwards compatible?

786






What is entitytypes? : Entity framework

771


Explain what is routing?

706


What are sections?

777


Does razor engine supports for tdd?

920


explain why t4 entity is important in entity framework?

754


How to update one of my table in database at 4pm every day how it is possible?

748


What operating systems will the .net framework 3.0 be available for?

773


what is way of loading data in ef (entity framework)?

774


Describe the roles of clr in .net framework.?

826


What is the .net framework?

755