C1Flexgrid SaveExcel Missing

Posted by: gkayne on 13 November 2017, 9:05 pm EST

  • Posted 13 November 2017, 9:05 pm EST

    Save Excel is no longer available to C1Flexgrid for WinForms after updating to Version 4.0.20173.282:

    - Error BC30456 'SaveExcel' is not a member of 'C1FlexGrid'.


    C1FlexGrid.SaveExcel(varFileName, varCaption, FileFlags.AsDisplayed + FileFlags.VisibleOnly + FileFlags.IncludeFixedCells + FileFlags.OpenXml)

  • Replied 13 November 2017, 9:36 pm EST


    from the readme of .282 (see file "C:\Program Files (x86)\ComponentOne\WinForms Edition\ChangeLog.html"):
    SaveExcel(string fileName, ...) methods were moved to C1.Win.C1FlexGrid.ImportExport assembly as extension methods. FileFlags and FileFormatEnum enumerations were also moved to C1.Win.C1FlexGrid.ImportExport assembly. If you use any of the listed methods, add reference to C1.Win.C1FlexGrid.ImportExport.4.dll to resolve "C1FlexGrid does not contain a definition for ..." error.

    Best regards

  • Replied 14 November 2017, 12:41 am EST

  • Replied 9 September 2018, 6:13 pm EST


    Now we moved from 2.0 (188) components to 4.0 (318) ; we have the following error using the "SaveExcel" method : "Could not load file or assembly C1.C1Excel.4 ...".

    Is it necessary to also add a reference to this dll in the references ?

  • Replied 10 September 2018, 4:02 pm EST


    You need to add a reference to C1.Win.C1FlexGrid.ImportExport.4.dll in your project. As already mentioned above by Wolfgang, the SaveExcel method has been moved to C1.Win.C1FlexGrid.ImportExport.4 assembly.

  • Replied 8 October 2018, 10:32 pm EST

    I was running into the same issue. SaveExcel and FileFlags in namespace C1.Win.C1FlexGrid have been moved. It has been moved to C1.Win.C1FlexGrid.ImportExport.4.dll ... Okay. But where do i get this Assambly?
    I was using this Installer -> C1StudiosWebInstallerv20182.1.6.exe
  • Replied 9 October 2018, 3:51 pm EST


    You need to add reference to this 'C1.Win.C1FlexGrid.ImportExport.4.dll' from this location: C:\Program Files (x86)\ComponentOne\WinForms Edition\bin\v4.0

    In case you need any further assistance on this, feel free to ask.

  • Replied 11 October 2018, 11:43 pm EST


    I'm still having the same problem and i've imported the importexport dll.
    It solved the FileFlags error but not the SaveExcel.

    My version is 4.0.20182.320

  • Marked as Answer

    Replied 14 October 2018, 5:00 pm EST


    Please make sure, you have included the namespace also:
    Imports C1.Win.C1FlexGrid

    - Meenakshi
  • Replied 7 April 2020, 8:42 pm EST

    I can't find the C1.Win.C1FlexGrid.ImportExport.4.dll in my ComponentOne directory. Can I download only this one from web?
  • Replied 8 April 2020, 4:59 pm EST

    Hi Jack,

    The C1.Win.C1FlexGrid.ImportExport.4.dll should be on the following location in your system:
    C:\Program Files (x86)\ComponentOne\WinForms Edition\bin\v4.0

    If you are not finding it there then you can download it from here.

    Prabhat Sharma.
Need extra support?

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

Learn More

Forum Channels