本文介绍了如何将Excel工作表与值productname进行比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


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

请回复
感谢在广告中.


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. How i am uploading .xls file add next code how 2 check?

please reply
thanks in adv.

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

推荐答案


这篇关于如何将Excel工作表与值productname进行比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 20:16
查看更多