Click here to Skip to main content
15,896,359 members
Articles / Programming Languages / C# 4.0

Excel Sheet save automatically when storing our datas listview to excel

Rate me:
Please Sign up or sign in to vote.
4.00/5 (1 vote)
18 Sep 2012CPOL 3.8K  
I am using windows Forms using C# Language,I have listview, it contains some items when i click the save button the listview items will saves to Excel File. Below is my code of save listview details to Excel.Microsoft.Office.Interop.Excel.Application xla = new...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
19 Sep 2012Martijn Kok
Saving can be done by using the SaveAs method of the WorkBook class. Making Excel invisible can be done by setting the Application Visible property to false.The SaveAs method has many parameters. Because they are optional you have not the supply them all. In the code below I have only...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions