datagrid of datatable to excell

RTT

Active member
Joined
Mar 16, 2005
Messages
26
Programming Experience
Beginner
I'm using windows 2000 with excel 2000 SP3, i import the microsoft office 9.0 object library. But when i user your code i receive the error "System.Runtime.InteropServices.COMException (0x80028018): Old format or invalid type library." at those lines like:
Excel.Workbooks.Add()

also when i use code i find at
http://support.microsoft.com/kb/319180/EN-US/
http://support.microsoft.com/default.aspx?scid=kb;en-us;306022

seems like they al use 10.0 object library, but i only have the 9. isn't theire any simple solution to import my datatable or may datagrid to excel? i think i try almost everything. :s

does anybody has an idea or some code to create an excelfile from a datagrid of datatable....
 
Top Bottom