code to generate a excel sheet and to write data into it ---
-it has to fetch the excel
sheet which is in one folder placed by us inside a project
folder(i,e it has to create a instance of that excel sheet)
and write the data into it row by row please respond as
early as possible
Answer Posted / uiky
string outputFile1 = "C:\\abc.xls";
FileInfo outputFileInfo1 =
new FileInfo(outputFile1);
FileStream outfs1 = null;
if(outputFileInfo1.Exists)
outfs1 =
outputFileInfo1.Open(FileMode.Open);
else
outfs1 =
outputFileInfo1.Open(FileMode.CreateNew);
TextWriter tw1 = new
StreamWriter(outfs1);
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is a framework in c#?
What are the different types of classes in c#?
Can constructor have return type c#?
What is the lock statement in c#?
What are the different types of delegation?
What is assembly manifest?
How to exclude a property from xml serialization?
What is gui in c#?
what are the different ways a method can be overloaded?
What is the default value of date?
How to declare a property in a class?
What is the difference between ienumerable and enumerable?
What is difference between gridview and form view?
Explain about accessibility modifier 'protected internal'?
Define delegate?