Jump to content

How open more than one PDF in different tab or windows


rencarnacion
 Share

Recommended Posts

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 

 

 

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...