Jump to content
Changes to the Jaspersoft community edition download ×

Blank PDF in Internet Explorer, works Mozilla


2005 IR Help

Recommended Posts

By: sneadil - wickedfey

Blank PDF in Internet Explorer, works Mozilla

2004-09-17 10:06

 

Using Jakarta Struts and JasperReports v0.5.3,

I am able to successfully create and stream

reports to a file on the file system and to Mozilla.

 

For some reason, in my action,

 

response.setContentType("application/PDF");

 

JasperManager.printReportToPdfStream(print,

response.getOutputStream());

 

in Internet Explorer causes the "Save / Open" dialog

box to pop up, then if I choose "Open" it gives me

a "Cannot find file" with the name of my Struts

Action.

 

In Mozilla, the PDF opens perfectly.

 

Any help would be much appreciated. Right now, I

am writing the report to a file, then redirecting to

a JSP that does a

 

self.location=<<PDF>>

 

as a work around, would love to just have IE work

the way Mozilla does.

 

Thanks in advance!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...