I have a MVC ActionResult controller that download the file.
If is PDF then using this JS code
var $obj = $('<object>');
$obj.attr("type", "application/pdf");
$obj.attr("data", myurl);
$("#id").append($obj);
Then i can preview the PDF in my app.
I want something similar for XLSX or XLS files.
If i hit the url i get the file but i cannot display it.
I tried with
<iframe src="https://docs.google.com/gview?url=myurl"></iframe>
but doesnt work.
Any ideas?