Export To Excel using excelIO client side

Posted by: jose.kurian on 24 January 2018, 6:05 am EST

    • Post Options:
    • Link

    Posted 24 January 2018, 6:05 am EST

    Hello,

    The export to excel feature is not working for me correctly. Problems I have are:

    1. There are a lot of columns with data in the web page; but when exported only some of them appear.

    2. The column headers are not getting exported.

    Version of spreadjs is gc.spread.sheets.all.10.2.0.min.js

    Version of excelIO is gc.spread.excelio.10.2.0.min.js

    Below is the code that I am using:

    
    var exportToExcel = function(e){
            var excelIO = new GC.Spread.Excel.IO();        
            var fileName = $("#AnalysisName").text() + '.xlsx';
            //Get the work book
            var workbook = $('#' + spreadSheetId).data('workbook');
            if (workbook) {
                workbook.refresh();
                var json = JSON.stringify(workbook.toJSON());
    
                excelIO.save(json, function (blob) {
                    saveAs(blob, fileName);
                }, 
                function (e) {
                    if (e.errorCode === 1) {
                        Scds.Framework.Messages.showError('There was an error while exporting to excel. ' + e.errorMessage);
                    }
                });
            }
        };
    
    

    Please help urgently. Thank you!

  • Posted 24 January 2018, 5:56 pm EST

    Please provide some support!

    I am following exactly what is outlined here:

    https://www.grapecity.com/en/blogs/how-to-importexport-excel-files-using-javascript-and-spread-sheets

    I tried simple spreadsheet with some dummy data. File gets exported, but none or only a portion of data gets exported. Colors\Styles are exported.

  • Posted 24 January 2018, 9:03 pm EST

    Hi Jose,

    I downloaded the sample mentioned in the blog post you’ve referred to and I could export all the data and column headers in the exported excel file. Could you please download the sample from here - https://gccontent.blob.core.windows.net/gccontent/blogs/legacy/sp/2017/04/SpreadJS-ExcelIO.zip and check at your end. Perhaps you’re missing something.

    If you’re still facing any issues, it’ll be helpful if you could provide your own application for us to debug.

    Thanks

  • Posted 29 January 2018, 1:07 pm EST

    Thank you for the response!

    Here is the example with the problem.

    There is column headings in the web spreadsheet. When exported, these column headings are not included.

    Sample.zip

  • Posted 29 January 2018, 8:35 pm EST

    Hello,

    I tested this application with SpreadJS v11.0 and found that column header is exported to Excel with ‘serializationOption’. Please test the attached sample page and Excel file.

    Thanks,

    Deepak Sharma

    SpreadJSExportexcelWithHeaders.zip

  • Posted 31 January 2018, 8:41 am EST

    But I have only licensed version of SpreadJs v10.2. So what to do?

    We have already paid a large amount to purchase your product and the export to excel will not export columns! This is not right.

    Please help to make this work in 10.2 version!

  • Posted 1 February 2018, 1:27 am EST

    Hello,

    I have submitted it as a bug for SpreadJS 10, I will let you know if it can be fixed with that version.The tracking id for this issue is 253944.

    Thanks,

    Deepak Sharma

  • Posted 2 February 2018, 5:42 am EST

    Thank you Deepak. Please help to get it working in SpreadJS 10!

    Can I track it with that ticket id some where?

  • Posted 4 February 2018, 6:10 pm EST

    Hi Jose,

    The ticket id is shared for records only. Customers do not have access to the bug system. We will get an update on this ticket as soon as developer make any changes to it. I will let you know about the same.

    Thanks,

    Deepak Sharma

  • Posted 5 February 2018, 5:24 am EST

    Hi Deepak,

    Appreciate it. Hope to hear about a solution soon!

    Thank you,

    Jose

  • Posted 7 February 2018, 5:40 am EST

    Hi Deepak,

    Any progress? We are in a critical timeline to get this done. Please help.

  • Posted 7 February 2018, 7:22 pm EST

    Hi Jose,

    This feature is not available with SpreadJS v10.0. SpreadJS v10.0 did not have support for serialization of column headers.

    It is only supported with SpreadJS v11.0, so I request you to please upgrade to v11.0.

    Thanks,

    Deepak Sharma

  • Posted 9 February 2018, 3:46 am EST

    Is that upgrade free?

  • Posted 11 February 2018, 5:49 pm EST

    Hello,

    You need to check with our sales team at

    us.sales@grapecity.com

    Thanks,

    Deepak Sharma

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels