maynard88 / ExportToExcel

jQuery Client Side Excel Export Plugin Library
19 stars 6 forks source link

Store file in disk #4

Open cristobalgc85 opened 5 years ago

cristobalgc85 commented 5 years ago

Hello, great plugin, JSON array to excel it´s great. But, is there any way to download that file in a route in disk? instead of opening it after creating. I want to send an email after it with that file attached. Thanks

maynard88 commented 5 years ago

Hello, you can use c# to locate the downloaded file and attached it to you email. What language are you using?

cristobalgc85 commented 5 years ago

The way I use it, tell me if I´m wrong, it´s to load data via JSON array, so it´s very fast. $("#divJson").excelexportjs({ containerid: "divJson", datatype: 'json', dataset: staticArraySelectedData, columns: getColumns(staticArraySelectedData), worksheetName: "Reporte Detalle Consulta Negocio Taller" });

That opens a Save As dialog, with a random coded name. That´s great for some uses, but now I have to save directly to disk, via Javascript, and then in server code (C#, MVC5), send an email. I got everything, just missing the save to disk. I´m guessing, if there´s an option in that excelexportjs method that let me save it directly to a route of my choice.

thanks for your help!

maynard88 commented 5 years ago

Are you able to download the excel of you json data?

Hi, contact me via skype maynardpaye88@gmail.com i can help you with it.

cristobalgc85 commented 5 years ago

The only way I can download the excel is through the SaveAs dialog, that´s the current way it works. But I would like to save it directly in the disk, not showing the dialog. Thanks, I´ll contact you!!!