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 private protected in c#?
What is dynamic object in c#?
What is binary search tree in data structure?
What is a hashset c#?
What is the difference between array and list in c#?
How can we Achieve Late binding in C#.Can any give one example.
How do you pronounce c#?
What is static class in C#?
How does one compare strings in c#?
how to access the virtual method without creating the objet for the virtual method?
Why singleton class is sealed in c#?
how dot net compiled code will become platform independent?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)