Export data from data grid to excel
I have the problem. I have on my computer Visual studio 2003 and excel 2003. When I import reference in my project i have two choises microsoft excel object 5 and excel 11. I choise excel 11 and write in my code:
Dim EXL As New Excel.Application()
Dim WSheet As New Excel.Worksheet()
WSheet = EXL.Workbooks.Add.Worksheets.Add
compiler send message :
"An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in EVB.exe
Additional information: Old format or invalid type library."
Where I wrong? Anybody help me? :(
|