Jump to content
Changes to the Jaspersoft community edition download ×

no output specified for the exporter


andysusanto

Recommended Posts

hai,

 

i get an error with this message "no output specified for the exporter" when i try to show output from JSP

 

 

and this is my partial code :

 

File reportFile = new File("C:/Tomcat 5.0/bin/".concat(REPORT_NAME).concat(".jasper"));

 

JasperReport jasperReport =

(JasperReport) JRLoader.loadObject(reportFile.getPath());

 

jasperPrint = JasperFillManager.fillReport(jasperReport, null, Con);

 

exporter = new JRHtmlExporter();

exporter.setParameter(JRHtmlExporterParameter.OFFSET_X, new Integer(1));

exporter.setParameter(JRHtmlExporterParameter.IS_WRAP_BREAK_WORD, new Boolean(true));

exporter.setParameter(JRHtmlExporterParameter.JASPER_PRINT, jasperPrint);

 

//exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, sbContext.toString());

exporter.exportReport();

 

TIA,

 

andy susanto

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi,

 

The message says exactly what's wrong with your code.

You supplied the exporter with the document to export, set a few other parameters to it, but you did not tell the exporter where to put the generated HTML:

OUTPUT_STREAM or OUTOUT_FILE?

Check again the supplied samples and see what you have missed there.

 

I hope this helps.

Teodor

Link to comment
Share on other sites

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