Jump to content
Changes to the Jaspersoft community edition download ×

Jasper 0.3.0 Can't override JasperViewer

Recommended Posts

By: John Pollard - johnnypoll

Jasper 0.3.0 Can't override JasperViewer

2002-05-14 09:27


In 0.2.5 I used to have my own derived class from JasperViewer. I was then able to add my own button to the top area to Save to a PDF file.

Now in version 0.3.0 when I try to override with a constructor as follows:


public MPJasperViewer(JasperPrint jasperPrint)





I get the following exception:


MPJasperViewer.java:24: unreported exception dori.jasper.engine.JRException; must be caught or declared to be thrown


But I can't put a try...catch around the super() call as Java doesn't allow it. Bit of a catch 22.






By: Artur Biesiadowski - abies

RE: Jasper 0.3.0 Can't override JasperViewer

2002-05-14 09:36

Well, I have not downloaded 0.3 yet, but couldn't you just do


public MPJasperViewer(JasperPrint jasperPrint) throws JRException





and then catch it from place where you construct MPJasperViewer ?

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