datagrid to excel

  • Thread starter Thread starter RTT
  • Start date Start date
R

RTT

hey,

i made a windows form where i created a datagrid with a datatable as it's
datasource. now i want to supplie a save button to my users so the datagrid
can be exported to excel. how can i do this?

thxs
 
I'm using windows 2000 with excel 2000 SP3, i import the microsoft office
9.0 object library. But when i use your code i receive the error
"System.Runtime.InteropServices.COMException (0x80028018): Old format or
invalid type library." at those line like:
oExcelWorkbooks.Add()


i try almost everything i found 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Datatable clear 4
Rows in Datagrid 12
populating Crystal Reports from DataGrid data 2
DataGrid X DataSource 2
Datagrid clear 3
DataView Relations 2
Q: DataView or DataTable 3
Datagrid problem 5

Back
Top