Export SfDatagrid .Net 6.0

Hi,

How do I export to PDF/Excel using .Net 6.0?

All documentation I could find points to using the dll Syncfusion.WinForms.DataGridConverter to be able to export to PDF/Excel.

However, it is not available for .Net 6.0.

Ps. Here is the documentation I am referring to:

https://help.syncfusion.com/windowsforms/datagrid/exporttopdf

https://help.syncfusion.com/windowsforms/datagrid/exporttoexcel

https://www.syncfusion.com/kb/9255/how-to-print-the-winforms-datagrid-sfdatagrid-control


1 Reply

SS Sampathnarayanan Sankaralingam Syncfusion Team March 3, 2022 04:25 PM UTC

Hi Mohammad,


Please find the response below.


  1. To export the datagrid to pdf you have to refer the Syncfusion.SfDataGridConverter.Winforms and Syncfusion.Pdf.Base.
  2. To export the datagrid to excel you have to refer the Syncfusion.SfDataGridConverter.Winforms and Syncfusion.XlsIO.Base dlls.
  3. For NuGet package, you have to install the Syncfusion.DataGridExport.Winforms package to export the datagrid to pdf and excel.


We have also created the sample to export the datagrid to pdf and excel.


Sample Link : https://www.syncfusion.com/downloads/support/forum/173326/ze/Sample1137200061


Please refer the sample and let us know if you have any concerns.


Regards,

Sampath Narayanan.S


Loader.
Up arrow icon