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 jit (just in time)?
Explain the difference between the debug class and trace class?
What is xaml in c#?
What is the difference between interface and functional interface?
What do you mean by shared assembly?
Distinguish between continue and break statement?
What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?
Is c# the same as d flat?
What do you mean by hashtable c#?
How can you use abstract class and interface?
Is null == null c#?
What are instance fields in c#?
Can a method be sealed in c#?
What is use of abstract class in c#?
What is hash c#?