Reading values from an Excel File

后端 未结 5 1605
無奈伤痛
無奈伤痛 2021-01-19 03:09

I want to get a value from 12 excel sheet. is there any way that i get the values without opening the excel sheet? I am using vb.net. Please post an example code, if there i

5条回答
  •  旧时难觅i
    2021-01-19 03:33

    One way is to create an excel application object and set visible = false, then open the excel. I don't know if you are looking for something increase speed or just to avoid having the user see the open and close excel files. I've used this and it works. I'm thinking about using the ADO connections; I've used this with access and they work great, and excel can be used as a database; I just don't know what happens if some of these files don't have the database style array (fields on top, values going down)??

提交回复
热议问题