C1.Win.c1FlexGrid.SaveExcel Throwing Method Not Found Exception

Posted by: randall.s.smith on 11 February 2025, 11:21 am EST

  • Posted 11 February 2025, 11:21 am EST

    Using the C1FlexGrid in a WinForm Application. The version of component one is 4.8.

    A call to the SaveExcel method is throwing the following exception:

    System.MissingMethodException

    HResult=0x80131513

    Message=Method not found: ‘Void C1.Win.C1FlexGrid.OwnerDrawCellEventArgs…ctor(C1.Win.C1FlexGrid.C1FlexGridBase, System.Drawing.Graphics, Int32, Int32, C1.Win.C1FlexGrid.CellStyle, System.Drawing.Rectangle, System.String, System.Drawing.Image)’.

    Source=C1.Win.C1FlexGrid.ImportExport.4.8

  • Posted 11 February 2025, 12:38 pm EST

    I may have solved my own problem. The SaveExcel was moved from the C1.Win.C1FlexGrid to the C1.Win.C1FlexGrid.ImportExport library starting in version 4.0 (if my research is correct). The version of the ImportExport.4.8 I was using was incompatible with the FlexGrid version. Both the dlls have been updated to 4.8.20242.693 and the application appears to be singing nicely (fingers crossed for test results). It did work correctly in my development environment so I am presently waiting for system test results.

  • Posted 12 February 2025, 12:06 am EST

    Hi Randall,

    Yes, your research is correct. The SaveExcel method has been moved to a different library (ImportExport) as an extension method. Using older version of ImportExport DLL with the latest version of C1FlexGrid DLL may cause issues, as the API has evolved over the years. Therefore, we recommend using the same version for both DLLs.

    If you encounter any other issues, please let us know.

    P.S.: This forum is intended for a different product, Spread .NET for WinForms, and not ComponentOne. Therefore, we kindly request you to create threads related to C1 WinForms controls in the C1 WinForms forum

    Best Regards,

    Kartik

Need extra support?

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

Learn More

Forum Channels