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 are the 2 popular asp.net mvc view engines?
How to change the action name in mvc?
mention what are the various methods provided by the dataset object to generate xml?
Explain what languages does the .net framework support?
explain how you can load related entities in ef (entity framework)?
mention what is csdl, ssdl and msl sections in an edmx file?
What are the components of the .net framework.
Which is the root namespace for fundamental types in .net framework?
Explain what is asp.net mvc?
Explain the advantage of packaging over xcopy in .net?
Explain the difference between Viewbag and Viewdata in ASP.NET MVC?
What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?
List out few different return types of a controller action method?
What is razor code?
What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?