Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



code to generate a excel sheet and to write data into it --- -it has to fetch the excel sheet whic..

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

Post New Answer

More C Sharp Interview Questions

What is private protected in c#?

0 Answers  


What is dynamic object in c#?

0 Answers  


What is binary search tree in data structure?

0 Answers  


What is a hashset c#?

0 Answers  


What is the difference between array and list in c#?

0 Answers  


How can we Achieve Late binding in C#.Can any give one example.

5 Answers   Value Labs,


How do you pronounce c#?

0 Answers  


What is static class in C#?

0 Answers   Winsol Solutions,


How does one compare strings in c#?

0 Answers  


how to access the virtual method without creating the objet for the virtual method?

1 Answers  


Why singleton class is sealed in c#?

0 Answers  


how dot net compiled code will become platform independent?

0 Answers  


Categories