We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Error when exporting to Excel

Thread ID:

Created:

Updated:

Platform:

Replies:

144888 May 27,2019 06:55 PM UTC May 30,2019 03:13 AM UTC JavaScript - EJ 2 3
loading
Tags: Schedule
S_Line
Asked On May 27, 2019 06:55 PM UTC

Hello,

I'm getting this error when try to export the schedule to excel:

Uncaught TypeError: Cannot read property 'Save' of undefined
    at new t (ej2-compression.min.js:10)
    at new e (ej2-excel-export.min.js:10)
    at e.processWorkbook (ej2-schedule.min.js:10)
    at e.initializeExcelExport (ej2-schedule.min.js:10)

Here is list of packages im using:

<script src="~/Scripts/ej2/ej2-base.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ej2/ej2-data.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ej2/ej2-inputs.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ej2/ej2-compression.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ej2/ej2-file-utils.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ej2/ej2-lists.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ej2/ej2-buttons.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ej2/ej2-popups.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ej2/ej2-splitbuttons.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ej2/ej2-navigations.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ej2/ej2-calendars.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ej2/ej2-excel-export.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ej2/ej2-dropdowns.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ej2/ej2-schedule.min.js" type="text/javascript"></script>

Vinitha Devi Murugan [Syncfusion]
Replied On May 28, 2019 11:49 AM UTC

Dear Customer, 

Greetings from Syncfusion. 

In the provided code example, scripts are not referred in proper order and kindly refer as per the below order. 


<script src="http://cdn.syncfusion.com/ej2/ej2-base/dist/global/ej2-base.min.js" type="text/javascript"></script> 
    <script src="http://cdn.syncfusion.com/ej2/ej2-data/dist/global/ej2-data.min.js" type="text/javascript"></script> 
    <script src="http://cdn.syncfusion.com/ej2/ej2-inputs/dist/global/ej2-inputs.min.js" 
        type="text/javascript"></script> 
    <script src="http://cdn.syncfusion.com/ej2/ej2-file-utils/dist/global/ej2-file-utils.min.js" 
        type="text/javascript"></script> 
    <script src="http://cdn.syncfusion.com/ej2/ej2-compression/dist/global/ej2-compression.min.js" 
        type="text/javascript"></script> 
    <script src="http://cdn.syncfusion.com/ej2/ej2-lists/dist/global/ej2-lists.min.js" type="text/javascript"></script> 
    <script src="http://cdn.syncfusion.com/ej2/ej2-buttons/dist/global/ej2-buttons.min.js" 
        type="text/javascript"></script> 
    <script src="http://cdn.syncfusion.com/ej2/ej2-splitbuttons/dist/global/ej2-splitbuttons.min.js" 
        type="text/javascript"></script> 
    <script src="http://cdn.syncfusion.com/ej2/ej2-navigations/dist/global/ej2-navigations.min.js" 
        type="text/javascript"></script> 
    <script src="http://cdn.syncfusion.com/ej2/ej2-calendars/dist/global/ej2-calendars.min.js" 
        type="text/javascript"></script> 
    <script src="http://cdn.syncfusion.com/ej2/ej2-popups/dist/global/ej2-popups.min.js" 
        type="text/javascript"></script> 
    <script src="http://cdn.syncfusion.com/ej2/ej2-excel-export/dist/global/ej2-excel-export.min.js" 
        type="text/javascript"></script> 
    <script src="http://cdn.syncfusion.com/ej2/ej2-dropdowns/dist/global/ej2-dropdowns.min.js" 
        type="text/javascript"></script> 


Kindly try the above solution and let us know, if you need further assistance on this. 

Regards, 
M.Vinitha devi. 



S_Line
Replied On May 29, 2019 01:38 PM UTC

Thank you for your assistance!! It works fine!

Karthigeyan Krishnamurthi [Syncfusion]
Replied On May 30, 2019 03:13 AM UTC

Most welcome 😊 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon