Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,
I am generating PDF in C# with Itext Sharp.For example I have three PDf like PDF1,PDF2 and PDF3.I am opening pdf in new window through javascript.But when I firstly click on Print PDF button it is opening the relavent pdf (like i want to open first PDF1) and when I click on next button of Print PDF (PDF2) it is opening the PDf(PDF1).The Point is here that the PDF1 which is opened in new window is still not closed.If I closed the window after printing the PDf to it, it is displaying the correct pdf.
Posted
Comments
ZurdoDev 25-May-12 11:25am    
This may sound like a dumb question but I have seen someone do it before. Are you sure you are not appending to the original pdf when you print pdf2?
BobJanova 25-May-12 12:06pm    
Show the JS please. There may be a caching or target issue.
amit2620 25-May-12 12:35pm    
This is not a dumb question.I am referring the pdf which I want to open.If I closed the new window after printing pdf then it will generate right pdf.If I didnt close any one of new window then the problem persist
Prosan 26-May-12 1:33am    
please give us your js and page code in which you are opening pdf.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900