I transfer the table data from html to excel using tableExport . It looks like this:

doExport = function () { _this.$el.tableExport($.extend({}, _this.options.exportOptions, { type: type, // выбранный тип экспорта })); }; 

It turns out the file with the default name tableExport.xls , which is created in the default folder for downloads, recorded, saved and closed.

It was necessary to add a graph after the table. tableExport is not intended for this. So the question is how do I access this file after executing tableExport? His name remains default - but a sequence number may be added. That is, the name I definitely will not know. I understand that there is a way to somehow remember the path and file name, but where to dig?

    1 answer 1

    You cannot use JS to access a file from the user's file system. You need to add your data before saving the file. Probably for this you will have to understand the library code and possibly modify it. I think the best solution would be to save the schedule in a separate file.