How to export DataGridView records to Microsoft Excel

1143130 pts.
Tags:
DataGridView
Microsoft Excel
I have several records of DataGridView (from Windows Forms) that I need to export to Microsoft Excel. What's the best way to do it? I don't want to use any DLL.
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

I don’t have working code to share at hand, but you will need to use the classes in the Microsoft.Office.Interop.Excel namespace.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • ToddN2000
    Have you tried exporting the data in a CSV format?
    132,950 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: