Help

  • 15 years ago

    Can someone provide me some help. How can I make a button (BROWSE) who will open a excel sheet in a datagrid in VB.NET.  

  • 15 years ago

    You can use ADO.NET to retrieve data from Excel just like you can from a proper database.  You use OleDb and the Microsoft Jet 4.0 provider, just like for Access.  The only difference is that there are no real tables, so your SQL needs to be adjusted slightly.  Lookup "ADO.NET Excel" on MSDN to get information and examples.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“If Java had true garbage collection, most programs would delete themselves upon execution.” - Robert Sewell