Export to Excel not working in android

1 Answer 104 Views
Excel Export
Eduardo
Top achievements
Rank 1
Eduardo asked on 03 Jul 2024, 07:34 PM

Hey everyone, 

I'm having some problems with the Export to Excel functionality on android, it's working properly on my web app, but when I use cordova to build the app on android and test the same function there seams to be an issue. I'm not getting any errors but the tables are not beeing exported as expected.

Does anyone know if there's a compatibility issue with Kendo and Cordova or if I have to set any especific configuration for this function to work?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 08 Jul 2024, 11:11 AM

Hello Eduardo,

This is the first time such an issue has been reported. That is why we aren't sure what could be the reason for the reported problem.

We tested the following example on Android mobile device:

https://www.telerik.com/kendo-angular-ui/components/excel-export/#toc-angular-excel-export-example

but it was exported without any issue. However, the demo is very generic and doesn't copy the environment in which the case was reproduced.

Regarding Cordova, we aren't familiar with the framework and its specifics, but based on when the issue is reproduced it looks like the issue is coming from the Cordova integration with Angular. What comes to mind are some generic topics that might sound a little bit generic and not straight to the point. 

First, verify that the application has the necessary permissions to write to the file system. Ensure you have the Cordova File Plugin installed. This plugin provides a uniform way of working with files on different platforms, including Android. Here some online resource on the topic which might be found helpful:

https://stackoverflow.com/questions/66400815/cordova-exporting-files-where-to-start

https://stackoverflow.com/questions/70752864/how-to-set-android-exported-for-cordova-application

Regards,
Martin Bechev
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Eduardo
Top achievements
Rank 1
commented on 19 Jul 2024, 01:07 PM

Hey Martin,

I was running some tests this week, and the generic topics all seem to be working correctly. I'm currently trying to build and run this app on iOS to see if the same issue occurs, as there might be an integration issue with Android.

One thing I noticed while debugging is that everything seems to be working fine from the framework until it calls the exportToExcel function. That's why I think this could be a compatibility issue between Kendo and Cordova.

I'll keep looking into it and will update you if I find anything new.

Thanks!

Martin Bechev
Telerik team
commented on 24 Jul 2024, 11:02 AM

Hi Eduardo,

Please check if downloading any file, using the saveAs method works. The saveAs method is part of the File Saver package and is being used internally for the Grid's Exel export logic.

You can obtain the source code of the Kendo components by following the steps from this article:

https://www.telerik.com/kendo-angular-ui/components/installation/source-code/

Regards

 

 

Tags
Excel Export
Asked by
Eduardo
Top achievements
Rank 1
Answers by
Martin Bechev
Telerik team
Share this question
or