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. Image for the cookie policy date

Error when exporting to Excel

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>

3 Replies

VD Vinitha Devi Murugan Syncfusion Team 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_ S_Line May 29, 2019 01:38 PM UTC

Thank you for your assistance!! It works fine!


KK Karthigeyan Krishnamurthi Syncfusion Team May 30, 2019 03:13 AM UTC

Most welcome 😊 


Loader.
Up arrow icon