How can I send a file via Web Application
Mostra commenti meno recenti
Hi I deployed a web application. After analyzing data imported by user through web browser, I want to send results as an excel file that can be downloaded by user. How should I do that?
Risposta accettata
Più risposte (1)
Roberto M Sanchez
il 3 Dic 2019
1 voto
Hello,
This theath has show quite well how to download an excel table using the command writetable. My problem is that I have generated a pdf report with reportgenerator and I want use saveas instead of writetable. But saveas is not supported in webapps.
How can I send the pdf report to the user?.
Thanks.
3 Commenti
Hunter Casillas
il 3 Gen 2020
I was able to send a pdf to the user using the following code:
Where report.OutputPath is the path to where the pdf is stored on the server.
web(report.OutputPath);
Alessandro
il 27 Feb 2023
You basically "saved my life"!!!!! Great!
Osborn
il 30 Gen 2024
@Hunter Casillas's solution works great for non-Excel files. Thanks!
Categorie
Scopri di più su Web Services in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
