2001 JI Open Discussion Posted August 14, 2006 Share Posted August 14, 2006 By: John Pollard - johnnypoll Jasper 0.3.0 Can't override JasperViewer 2002-05-14 09:27Hi, 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) { super(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. Thanks John By: Artur Biesiadowski - abies RE: Jasper 0.3.0 Can't override JasperViewer 2002-05-14 09:36Well, I have not downloaded 0.3 yet, but couldn't you just do public MPJasperViewer(JasperPrint jasperPrint) throws JRException { super(jasperPrint); } and then catch it from place where you construct MPJasperViewer ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now