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 / 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 |
What is console based application?
Do extension methods have to be static?
Is datetime value type c#?
What is the difference between internal and private in c#?
What namespace is list in c#?
What is difference between array and list?
what is scope of a protected internal member variable of a c# class
Is object an int c#?
What is cshtml?
What is the use of the dispose method in C# ?
Why is static constructor called first?
Why are mutable structs evil?