使用Visual Basic的VB.NET [英] VB.NET using Visual Basic

查看:81
本文介绍了使用Visual Basic的VB.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我正在创建一个用于在WPF中输入候选人详细信息的gui,我将输入的全部数据存储在excel工作表中,但是根据候选人姓名/电子邮件成功搜索之后,我想在我的搜索窗口中显示受人尊敬的excel结果.一个可以帮助我解决它的紧急情况

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

推荐答案

//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];


这篇关于使用Visual Basic的VB.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆