hello! i ve built a program whith sql server, and i want the user to be able to update the database from an excel file. I have read the following code
Dim con As OleDb.OleDbConnection = New OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;data source=c:\CAD.xls;Extended Properties=""Excel 8.0""")
but i d'like the user to choose the destination of the excel, via an openfiledialog. Can this be done ? I'd also like the user to be able to export the results of a datagrid in an excel file, but in different collumns, and not the whole dataset, just the datagrid. (i've only been able to export the data in a single column).
Thank you very much for your time
Dim con As OleDb.OleDbConnection = New OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;data source=c:\CAD.xls;Extended Properties=""Excel 8.0""")
but i d'like the user to choose the destination of the excel, via an openfiledialog. Can this be done ? I'd also like the user to be able to export the results of a datagrid in an excel file, but in different collumns, and not the whole dataset, just the datagrid. (i've only been able to export the data in a single column).
Thank you very much for your time