Need Help in exporting to Excel

Posted by: kjalmeraikhi on 6 July 2021, 9:17 am EST

  • Posted 6 July 2021, 9:17 am EST

    hello

    I am new to C1 and I am facing an issue in exporting to Excel I have followed the examples in the documents however every time I run my application and try to run the code I get a exception “Invalid parent style (null or different context)” and that is it nothing else. I am at the latest VS and C1 using .net 4.5 can you help me please.

  • Posted 7 July 2021, 12:21 am EST

    Hi,

    Could you please let us know which C1 control are you facing this issue with and if possible, can you please provide a small sample replicating the issue?

    Regards.

    Avnish

  • Posted 2 September 2021, 8:49 am EST

    I have the same error when exporting from webform/flexgrid saveAs excel. The form would have multiple grids and it looks like the issue with the the CellStyle(?).

    I can’t pinpoint for sure the exact issue but the error that comes back is “Invalid parent style (null or different context)”.

  • Posted 2 September 2021, 9:08 am EST

    I’m getting the error in C1FlexGrid.SaveGrid() when saving as excel

  • Posted 3 September 2021, 12:51 am EST

    Hi Jenn,

    We have replied to your “My Support” case regarding the same issue. Please continue the thread there.

    Regards

    Avnish

  • Posted 26 January 2022, 8:25 am EST

    Hi Avnish.

    we have the same problem.

    https://www.grapecity.com/forums/winforms-edition/need-help-in-exporting-to-#hi-jennwe-have-replied-to-

    Can you share the solution?

    Thanks

    Vito

  • Posted 27 January 2022, 12:45 am EST

    Hi Vito,

    The “Invalid parent style (null or different context)” error usually occurs when you have used CellStyle of one FlexGrid in another FlexGrid. Please make sure you are not doing the same in your application.

    If you still face the issue, please share a sample on the support case [Case ID CAS-28560-J8M9V1] we have created for you. The support portal is private so you can share information there without worrying.

    Regards

    Avnish

Need extra support?

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

Learn More

Forum Channels