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
close icon

Spreadsheet Save as Excel not working

I'm using a Spreadsheet control in my web form.

               
           

Then in the code behind,

Protected Sub SS_ServerExcelExporting(sender As Object, e As Syncfusion.JavaScript.Web.SpreadsheetEventArgs) Handles SS.ServerExcelExporting
        Dim args = e.Arguments
        Dim password As String = args("password").ToString()
        Dim sheetModel As String = args("sheetModel").ToString()
        Dim sheetData As String = args("sheetData").ToString()
        Dim Title = TxtTitle.Text



        If Not String.IsNullOrEmpty(password) Then
            Spreadsheet.Save(sheetModel, sheetData, "A.XLSX", ExportFormat.XLSX, ExcelVersion.Excel2016, password)
        Else
            Spreadsheet.Save(sheetModel, sheetData, "A.XLSX", ExportFormat.XLSX, ExcelVersion.Excel2016)
        End If

        LblStatus.Text = "Saved"
    End Sub


When I run, The Save as shows, Save the file dialog shows and there is a text box to type the name. But when I click save, nothing happent. I put a breakpoint at above code behind, but I did not hit.

I have reported some thing in the output window,



TypeError: n(...).valid is not a function
    at t.spreadsheetFeatures.exporting._dlgSave (http://localhost:2051/ScriptResource.axd?d=6kNGQFd0-BCjryqyTklX31OF9SFWPV4RK2GK1zSGxH1TQE9HVdAuLdg0mFnDTtapcYt2jWiO3x_kPt7agMQmHZMfXnnGyDAa3jQSrummBsznfqnlZELHlJQ-jCtHTLkIXQukGJSwHKfGL9OF3wnm3Rgne-UTqD0U7eP70h3KRIE1&t=3b2e3250:10:1273248)
    at Object. (http://localhost:2051/ScriptResource.axd?d=HcDiAh-4bgOyZXn3L1_PoJRZrWznhSJKgPA8IoNoamejksUPqrdM5QHTYp0fHzBlbMOtTHIiw9ZYpiU3bBZoc6HBxkto7D4f8bss4QMFU1KLoZHJ5dlOru5lCP5Xdnveq7d_AWkbZQ4C8jaEJzDKoeW-oI1DhWJr0tKIIn_dTFQ1&t=3b2e3250:10:27428)
    at Object._trigger (http://localhost:2051/ScriptResource.axd?d=HcDiAh-4bgOyZXn3L1_PoJRZrWznhSJKgPA8IoNoamejksUPqrdM5QHTYp0fHzBlbMOtTHIiw9ZYpiU3bBZoc6HBxkto7D4f8bss4QMFU1KLoZHJ5dlOru5lCP5Xdnveq7d_AWkbZQ4C8jaEJzDKoeW-oI1DhWJr0tKIIn_dTFQ1&t=3b2e3250:10:13393)
    at Object._btnMouseClickEvent (e:\code projects\student data\web server\studentdatabaseserver\studentdatabaseserver\scripts\ej\web\ej.web.all.min.js:10:279027)
    at HTMLInputElement. (http://localhost:2051/ScriptResource.axd?d=HcDiAh-4bgOyZXn3L1_PoJRZrWznhSJKgPA8IoNoamejksUPqrdM5QHTYp0fHzBlbMOtTHIiw9ZYpiU3bBZoc6HBxkto7D4f8bss4QMFU1KLoZHJ5dlOru5lCP5Xdnveq7d_AWkbZQ4C8jaEJzDKoeW-oI1DhWJr0tKIIn_dTFQ1&t=3b2e3250:10:27428)
    at HTMLInputElement.dispatch (e:\code projects\student data\web server\studentdatabaseserver\studentdatabaseserver\scripts\jquery-3.3.1.min.js:2:41773)
    at HTMLInputElement.y.handle (e:\code projects\student data\web server\studentdatabaseserver\studentdatabaseserver\scripts\jquery-3.3.1.min.js:2:39792)



Help me to fix this

Attachment: ExamEdit_7b81fb61.zip

1 Reply

DL Deepa Loganathan Syncfusion Team January 30, 2019 12:32 PM UTC

Hi Hasindu, 
 
 
Thank you for contacting Syncfusion support. 
 
 
We have checked your reported issue and we suspect that the probable cause of this issue must be missing jquery.validation.min.js script file in your application. To resolve this issue, we would suggest you refer the validation script in ExamEdit page as like in the below code example. 
 
 
[Site.Master]  
 

 

 <script src="Scripts/jquery-3.3.1.min.js">script>


<script src="Scripts/jsrender.min.js">script>


<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js">script>


<script src="Scripts/ej/web/ej.web.all.min.js">script>


 
  
 
Kindly get back to us if you have any further concerns. We will be happy to assist you. 
 
 
Regards, 
 
Deepa L. 
 


Loader.
Live Chat Icon For mobile
Up arrow icon