Click here to Skip to main content
16,017,376 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Now i am creating one gui for entering candidate details in WPF and i stored the whole entered data in excel sheet,but after successful search based on candidate Name/Email i want display respected excel result in my search window.. please any one help me its urgent
Posted

1 solution

C#
//create array list named a[];
range = worksheet.UsedRange;
//row is in which ur data present
for (column = 1; column <= range.Columns.Count; column++)
{
a[column-1]= (range.Cells[row, column] as Excel.Range).Value2.ToString();
                }
//for example u have name and address in excel
txtName.text=a[0];
txtAddress.text=a[1];
 
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