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
How can we determine action invoked from HTTP GET or HTTP POST?
How large is the .net framework 3.0?
What is the difference between viewbag and viewdata in asp.net mvc?
what is entity data model?
What are sections?
how do you mark a property as required? For example, for a project, the name is a required field.
What is code first? : Entity framework
What is Area in ASP.Net MVC?
What are the 2 popular asp.net mvc view engines?
what is more complex to implement property, methods or event? how can I define criteria to compare the difficulty of implementation between them? for example the number of methods wanted to implements property is 2 methods. how many methods I need it to implements events?
What is MVVM design pattern?
What is the use of action filters in an mvc application?
How we can handle the exception at controller level in ASP.Net MVC?
What are HTML Helpers, AJAX Helpers in ASP.Net MVC?
What is entitytype? : Entity framework