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
What does a viewmodel do?
Can you set the unlimited length for "maxjsonlength" property in config?
Explain what is routing?
What are child actions in ASP.Net MVC?
what is model first approach?
What is the role of the jit compiler in .net framework?
How large is the .net framework 3.0?
What are differences between entity framework and l2s? : Entity framework
what is eager loading?
Explain peek method in tempdata in asp.net mvc?
What is the domain object?
What is .net framework & its benefits?
Explain linq to entities? : Entity framework
Can we add constraints to the route? If yes, explain how we can do it?
Explain the difference between Viewbag and Viewdata in ASP.NET MVC?