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
Explain the methods used to render the views in mvc?
If I have multiple filters implemented, what is the order in which these filters get executed?
What are Non Action methods in ASP.Net MVC?
What is Differnce between html.action and ajax.action?
Can we have enum in entity framework?
what is msl?
How to enable Attribute Routing?
what is entityclient?
What are the 3 main components of an asp.net mvc application?
what do you mean by navigation property?
What is NonActionAttribute ?
List out few different return types of a controller action method?
What is routeconfig.cs in mvc 4?
Where is tempdata stored?
What is .net architecture and framework?