Jump to content
Changes to the Jaspersoft community edition download ×

I can't see my exported report (only jprint)


2005 IR Help

Recommended Posts

By: yoshimit - yoshimit

I can't see my exported report (only jprint)

2004-11-18 09:07

I * !

 

I made a report in iReport and test it... works fine.

When I call it from my class, everything goes fine, until I ask for show it.

 

look:

 

- In my class I'm doing this:

JasperFillManager.fillReportToFile("test.jasper", parameters, jrRS);

JasperRunManager.runReportToPdfFile("test.jasper", parameters, jrRS);

JasperViewer.viewReport("teste.pdf", false);

 

in this last line, the error:

java.io.StreamCorruptedException: invalid stream header

 

I don't understand, because if I use the code below, it works:

JasperReport jr = JasperCompileManager.compileReport("teste.jrxml");

JasperPrint jprint = JasperManager.fillReport(jr, parameters, jrRS);

JasperViewer.viewReport(jprint, false);

 

please guys, some help will be very useful.

 

Yoshimit

 

 

 

 

By: yoshimit - yoshimit

RE: I can't see my exported report (only jpri

2004-11-18 09:11

I forgot to say...

 

the file test.pdf is created...

so I think is a problem with viewReport().

 

Yoshimit

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...