rencarnacion Posted April 22, 2015 Posted April 22, 2015 Hello People I'm having a problem now I have a form where you can select more than one report to print but when I try to do it the user only can see the last pdf generated, the thing I want to do is open every pdf report in separate tab or windows because the procedure "SendFile" open in the same tab. Thanks Quote
zilav Posted April 22, 2015 Posted April 22, 2015 This is impossible, otherwise you would be getting 20 new tabs with ADs every time you click any link in internet. You need to show several buttons/links for each report for user to click. Or create a single report with links inside to the others. Quote
rencarnacion Posted April 22, 2015 Author Posted April 22, 2015 I don't think so, I think is possible !! Quote
zilav Posted April 22, 2015 Posted April 22, 2015 No it is not. That's why you will never have a button "Download all" for several email attachments, they will be packed into a single file at least. Quote
docjones Posted April 24, 2015 Posted April 24, 2015 if i understand what do you want to do, you cant not use sendfile. i think that you can export all reports with diferent names to localcachepath, create one unitabsheet and one unihtmlframe every pdf, and load it each pdf into each unihtmlframe. Quote
Tim Posted April 27, 2015 Posted April 27, 2015 Hi, I once managed to get this working with the jQuery multiDownload Plugin: https://github.com/biesiad/multiDownload Different browsers handle multiple downloads differently. From what i remember, Chrome displays a warning that the website is trying to download multiple files, whereas Firefox displays a Save/Open dialog for each file. So it is arguably not the best user experience, but it is basically doable. Another option you might like to consider is creating a zip file containing all the PDFs to be downloaded, so the browser only has to download one file. I hope this helps, Tim Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.