PDA

View Full Version : Import và Export Excel trong C# ???



npqk
21-11-2004, 20:10
Cho mình hỏi, trong C#, làm thể nào để Import 1 file Excel vào datagrid. sau đó Export file Excel đó vào trong Database (SQLServer)

nguoikicuc
21-11-2004, 23:08
Có mấy cái links bạn có thể tham khảo về vấn đề này:

http://msdn.microsoft.com/vstudio/office/default.aspx?pull=/library/en-us/odc_vsto2003_ta/html/vstointro.asp

http://msdn.microsoft.com/vstudio/office/default.aspx?pull=/library/en-us/odc_vsto2003_ta/html/odc_vstsqlexcl.asp

Bạn cần phai có MS Office 2003, luc install phai theo thứ tự

1. Microsoft Visual Studio .NET 2003
2. Microsoft Office System 2003
3. Visual Studio Tools for the Microsoft Office System

Good luck.