[转贴]如何将Excel工作表与值productname进行比较(工作表中是否存在该值) [英] [Repost] how to compare a excel sheet with a value productname(does this value exists in sheet)

查看:86
本文介绍了[转贴]如何将Excel工作表与值productname进行比较(工作表中是否存在该值)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在上传.xls文件.但我想检查文件是否正在上传,包括产品名称和价格(此r 2标头),那么只有它应该上传.否则它不应该...任何人都可以使用vb.net发送代码.这就是我如何上传.xls文件...现在添加下一个代码如何2检查?

请回复
感谢在广告中.
使用vb.net发送下一个零件代码


im uploading .xls file. but i want to check whether the file im uploading consist productname and price(this r 2 header), then only it should upload. otherwise it shouldnot....can anybody send the code using vb.net. this how im uploading .xls file... now add next code how 2 check?

please reply
thanks in adv.
send the next part code using vb.net

Protected Sub UploadBtn_Click(ByVal sender As Object, ByVal e As System.EventArgs)

      If (FileUpLoad1.HasFile And FileUpLoad2.HasFile) Then
          FileUpLoad1.SaveAs("C:\Documents and Settings\Administrator\My Documents\anil\" + FileUpLoad1.FileName)
          Label1.Text = "File Uploaded: "; + FileUpLoad1.FileName
          FileUpLoad2.SaveAs("C:\Documents and Settings\Administrator\My Documents\anil\"; + FileUpLoad2.FileName)
 Label2.Text = "File Uploaded:" + FileUpLoad2.FileName
      Else
          Label1.Text =  "No File Uploaded."
          Label2.Text = " No File Uploaded."
      End If
  End Sub

推荐答案

请勿重新发布 [ ^ ]您的问题.

如果它在废墟中迷路了,请编辑原始问题,使其进入问题列表的顶部(使更多的人可以看到它.)
Please do not repost[^] your questions.

If it gets lost in the rubble, edit the original question so it gets to the top of the question list (making it visible to more people).


这篇关于[转贴]如何将Excel工作表与值productname进行比较(工作表中是否存在该值)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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