FlexGrid Export to Xlsx support for .NET Framework?

Posted by: m-aubrey on 22 March 2023, 1:10 am EST

    • Post Options:
    • Link

    Posted 22 March 2023, 1:10 am EST

    I was attempting to follow the documentation here: https://www.grapecity.com/componentone/docs/wpf/online-flexgrid/export-to-excel.html#

    When I realized that the C1.WPF.Grid namespace was part of the .NET version of the WPF Edition, but not the .NET Framework version.

    How can I implement export from FlexGrid to Excel in the .NET Framework version of the WPF Edition?

  • Posted 22 March 2023, 11:07 pm EST

    Hi Michael,

    The C1FlexGrid .NET Framework API supports exporting to CSV, HTML, and plain text only.

    However, you can export the flexgrid to Excel (XLSX) format using the C1Excel library. To assist you, we have provided a sample application that demonstrates how to use the C1Excel library to save a regular bound FlexGrid control as an XLSX file. Please refer ExportFlexgridToExcel.zip

    Kindly let us know if you have any further concerns.

    Thanks & Regards,

    Aastha

  • Posted 23 March 2023, 11:49 am EST

    Ah, I see. It seems like the SaveAsync function is only in the .NET Core version of the WPF Edition.

    Thank you very much. I was able to export an Xlsx file using your example.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels