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 the difference between do and while loop?
If there are 2 interface IParentInterface & IChildInterface as follows. interface IParentInterface { void InterfaceMethod(); } interface IChildInterface : IParentInterface { void InterfaceMethod(); } Both the interface contains method with same name InterfaceMethod(). How InterfaceMethod() will be handled in IChildInterface as its deriving IParentInterface
Can properties be overloaded in c#?
What is constructor overloading in c#?
What is difference between list and ilist in c#?
What is _layout cshtml?
What is the extension of c# file?
Can I call a virtual method from a constructor/destructor?
is it possible to access a remote web service Without UDDI?
What is uint c#?
what is lamda expression?
What is the difference between an XML "Fragment" and an XML "Document." ?