public void ExportToExcel()
{
string sheetModel = HttpContext.Current.Request.Params["sheetModel"], sheetData = HttpContext.Current.Request.Params["sheetData"];
Spreadsheet.Save(sheetModel, sheetData, "sample", ExportFormat.XLSX, ExcelVersion.Excel2013);
}
,but I'm getting exception on this method.
Also import process, but after that when I'm trying to export I receive JavaScript error.
When I use http://js.syncfusion.com/ExportingServices/api/JSXLExport all runs without any error.
Could you provide please updated Mapper WebAPI controller sample ?
Also when I'm running sample from https://www.syncfusion.com/forums/121883/import-export-to-function-json-instead-of-excelurl with ej.web.all.min.js 14.1.0.41 or 14.1.0.46 it returns exception (Unable to get property 'text' of undefined or null reference - ej.web.all.min.js (10,4050813)
Kind regards,
Alex
function loadComplete(args) {
var xlObj = $("#Spreadsheet").data("ejSpreadsheet"), xlFormat = xlObj.XLFormat;
if (!xlObj.isImport) {
xlFormat.format({ "type": "currency" }, "A1:A1");
}
}
<globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" culture="de-DE" uiCulture="de-DE" />
I've get an error
Regards,
Alex