alasql

Define cell format on AlaSQL/JS-XLSX Excel Export

时光怂恿深爱的人放手 提交于 2019-12-01 20:03:51
Is it possible to define cell format on AlaSQL export to Excel? I'm maintaining a system that exports grid data to Excel using AlaSQL. The problem is that Excel data is not being converted to NUMBER. DATE is OK, but Numeric types always appears as General. By forcing a convertion to Number type in JS, the message "Number stored as Text" is shown on xls file. I think it would be easier solving this problem using js-xlsx directly, but it would generate lots of changes in project and this is not an option. I need to use something like shown in this jsFiddle , passing json options to alasql