Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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....

Posted

As to exporting a datagrid to excel if using a win form have a look at the following thread

 

Thread

 

or for a bit more detail.

Link

Link

 

--------

If you are using a web form them do a search within this forum and you should be able to find your answer.

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

-- Rick Cook, The Wizardry Compiled

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...