var spreadsheet = new dhx.Spreadsheet("spreadsheet", {
menu: true,
toolbarBlocks: ["default", "file"],
});
function importXlsx() {
// exception throw
spreadsheet.load( "static/xls/test.xlsx", "xlsx");
}
function exportXlsx() {
spreadsheet.export.xlsx();
}
Error Log
RuntimeError: unreachable
at lib.wasm:0x34170
at lib.wasm:0x357c3
at lib.wasm:0x35173
at lib.wasm:0x352d5
at lib.wasm:0x33ff9
at xlsx_new (lib.wasm:0x10ab9)
at Function.new (worker.js:348)
at doConvert (worker.js:451)
at worker.js:473
Hello, i also tried uploading the file, then using excel2json worker - error:
RuntimeError: unreachable
at lib.wasm:0x34170
at lib.wasm:0x357c3
at lib.wasm:0x35173
at lib.wasm:0x352d5
at lib.wasm:0x33ff9
at lib.wasm:0x10ab9
at Function.new (worker.js:348)
at doConvert (worker.js:451)
at worker.js:473
how can i import a local file without opening a dialog box?
RuntimeError: unreachable
at rust_panic (lib.wasm:0x3b2c8)
at std::panicking::rust_panic_with_hook::hc2ec7be1238a7bbd (lib.wasm:0x39f4e)
at std::panicking::continue_panic_fmt::h24582d7dd7d6cc71 (lib.wasm:0x3ac95)
at rust_begin_unwind (lib.wasm:0x3b236)
at core::panicking::panic_fmt::h15a4056a4cc61a13 (lib.wasm:0x3a737)
at core::result::unwrap_failed::h1aead7fde4dc0cdd (lib.wasm:0x39a85)
at xlsx_new (lib.wasm:0x12876)
at Function.new (worker.js:342)
at doConvert (worker.js:439)
at worker.js:460
I apologize for that delay with the reply.
Thank you for your report. The problem is confirmed. we’ll try to fix it in one of the future updates.
I’ll inform here about the progress of this issue.
The dhx.Spreadsheet 4.3 was successfully released and this problem is now fixed.
Loading from the xlsx files should work well.
Please, try to download the latest available dhx.Spreadsheet build from your client’s area to get that fix.
Error as below:
RuntimeError: unreachable
at rust_panic (lib.wasm:0x3b2c8)
at std::panicking::rust_panic_with_hook::hc2ec7be1238a7bbd (lib.wasm:0x39f4e)
at std::panicking::continue_panic_fmt::h24582d7dd7d6cc71 (lib.wasm:0x3ac95)
at rust_begin_unwind (lib.wasm:0x3b236)
at core::panicking::panic_fmt::h15a4056a4cc61a13 (lib.wasm:0x3a737)
at core::panicking::panic::hc2f61635fb33907c (lib.wasm:0x39e1f)
at alloc::raw_vec::capacity_overflow::h7611ecf82ba22c8d (lib.wasm:0x3b21a)
at <alloc::raw_vec::RawVec<T, A>>::reserve::h1ed8d3717cee6d6d (lib.wasm:0x38131)
at xlsx_export::XLSX::read_sheet::h5654409a2d926e68 (lib.wasm:0x13e05)
at xlsx_get_sheet_data (lib.wasm:0x24562)
Importing your generated xlsx file throws an error that the styles are missing.
Please, check if you you’ve added the stylesheet to your xlsx generator.
We’ll also check this problem on our side.
1 Like
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan