Sorin,
You will find you have to test PDF export/display on many different
systems before you find all the issues. One thing that will throw you
off is whether or not each client has the Adobe browser plug-in
installed, and if so which version. You will get different results
depending on these circumstances.
I had some trouble with this, so I ended up telling my reports system
(Crystal Reports JRC) to export the PDF "as an attachment". Not sure
what this changed in the resulting headers, but it opens up externally
not in the browser window (not what you want). Best of luck.
Regards,
Jeff Bischoff
Kenneth L Kurz & Associates, Inc.
Sorin Silaghi wrote:
Hello,
I have this small issue: I am generating PDF reports using jasper but IE
can't open them directly in the window.. in the best case scenario it opens
a separate Acrobat Reader window and displays the file there.. (I
managed to
get reed of the Open/Save menu...)
this is what I've added to the response in the component...
response.setContentType("application/pdf");
response.setHeader("Content-Disposition", "inline; filename=" + file
+ ".pdf");
response.setContentLength(bytes.length);
it works fine on FFx btw :)
any ideas ?
thank you