C# Export DataGridView Data to Microsoft Excel

preview_player
Показать описание
TIMESTAP
0:00 App Demo
0:20 Nuget Package Installation and Source Code

Visual Studio C# Tutorial for Beginners
Visual Studio 2017 version
CSharp
C# How to Export data to Excel
C# Export DataGridView data to Excel
C# Export to Excel
C# DataGridView

C# How to export data from DataGridView to Excel using Microsoft.Office.Interop.Excel without saving to the file system

How to install Nuget Package Microsoft.Office.Interop.Excel

Fix Error 'Microsoft.Office.Interop.Excel.ApplicationClass' cannot be embedded. use the applicable interface instead.
Рекомендации по теме
Комментарии
Автор

thanks, can i to change and save data in some file? (my great problem !!)

lighton
Автор

I love the tutorial it's very easy to understand, but my problem after clicking the export button it throws an error to this code "MExcel.Cells[i + 2, j + 1] = it says

'Object reference not set to an instance of an object.'
returned null.

Can you please teach me how to fix this? Thanks!

ellisjoshuacadusale