Having trouble exporting to

Posted by: daniel on 26 August 2021, 7:55 am EST

  • Posted 26 August 2021, 7:55 am EST - Updated 30 September 2022, 12:06 am EST

    Hello, Im having trouble exporting my c1 report to an excel sheet using the built in export function of the C1 Flex Viewer. I get this error when I try to do so.

    The Excel sheet which it exports is also unopenable/empty.

    Any help is appreciated. Thanks

  • Posted 26 August 2021, 2:43 pm EST

    Hi Daniel,

    It seems like you are trying to access an UIElement from a different thread. For example, you might be accessing the control inside an async method. So, if that’s the case then you can wrap the element access code within a Dispatcher’s RunAsync call as follows:

    
     _ = Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
    {
    	// Access the control here
    });
    
    

    Best Regards,

    Kartik

  • Posted 27 August 2021, 1:40 am EST - Updated 30 September 2022, 12:06 am EST

    Except it appears to be something internal to the dlls for C1. See below. Im not actually calling any code that might trigger this from the application. Just using the built in button on the control.

  • Posted 30 August 2021, 10:23 pm EST

    Hi Daniel,

    I apologize for the delay.

    I have tried the same with the latest build i.e. 10.0.20212.747. However, this behavior is not reproducible at our end.

    Could you please share a small sample replicating this behavior along with the build number you are using?

    Best Regards,

    Kartik

  • Posted 3 September 2021, 2:42 am EST

    C1SampleExcelExport.zip

    We are using Version 10.0.20192.658

  • Posted 5 September 2021, 4:52 pm EST

    Hi Daniel,

    Thank you for sharing the sample.

    This behavior seems like a bug. So, we have escalated it to the devs and will get back to you when there is any update. [Internal Tracking Id - C1XAML-27989]

    Best Regards,

    Kartik

  • Posted 20 September 2021, 4:34 pm EST

    Hi Daniel,

    I am happy to inform you that this issue is fixed in the latest C1 NuGet package. So, I would request you to upgrade to the latest build (10.0.20212.747) for the same.

    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