ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Reading & manipulating the Excel data programatically in C# progra (https://www.excelbanter.com/excel-programming/374684-reading-manipulating-excel-data-programatically-c-progra.html)

Rp007

Reading & manipulating the Excel data programatically in C# progra
 
Hi

I am trying to open an existing excel file through my C# application and
reading the data in the excel file then I need to format the data
programatically then put the data back in to excel file on some other cell.

I am able to assign the cell values but can not access and format it. i.e
WorkSheet.Cells[1,2] = WorkSheet.Cells[4,4]; // working fine.
MessageBox.Show(WorkSheet.Cells[4,4].ToString()); // Shows as
'System.__ComObject' as message.

Couldn't get how to handle the cells data. I am using C# and referenciing
Excel 11.0 object library.

Any help would be appreciated.

thanks,
-Ram.


All times are GMT +1. The time now is 01:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com