Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
I have dev.xls file with sheet name as "Electricity". In my vb.net winform application, I want to read all this data and write it into another xls file (Test.xls) with sheet name as "Electricity_Processed". Any suggestions please?
Posted

Hello,

If your spreadsheets are not too big, you could use GemBox.Spreadsheet which is a free component that will make coding what you want very easy:

http://www.gemboxsoftware.com/GBSpreadsheetFree.htm[^]

The website has plenty of Samples[^].

The free version has a limit of 5 sheets/ 150 rows per sheet and can be used for any purpose including commercially.

Valery.
 
Share this answer
 
Comments
Member 8001800 15-Jun-11 8:53am    
My spreadsheet will have approximately 1500 rows. Is there any other way than using 3rd party dll's
You will need to look at automating Office applications using your VB.NET application.

A decent tutorial:
http://www.xtremevbtalk.com/showthread.php?p=1326018[^]

And the obligatory MSDN link:
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.applicationclass(v=office.11).aspx[^]

At the bottom of the page there is example code.

Regards
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900