Jump to content
Changes to the Jaspersoft community edition download ×

Html Export Problem


sk_shailesh

Recommended Posts

Hi Friends,

 

I have created the report, that's having the chart. When i have exported the report to pdf,excel,rtf format's in the struts web application then it is chart is coming fine.

 

I am creating the Chart within the Jasper Report & not using any other chart tool like JFree chart.

 

But when i am exporting into the Html then it is not coming. I am setting the following chart properties :

 

JRHtmlExporter htmlExporter = new JRHtmlExporter();

htmlExporter.setParameter(JRExporterParameter.JASPER_PRINT,jasperPrint);

htmlExporter.setParameter(JRExporterParameter.OUTPUT_STREAM,response.getOutputStream());

//htmlExporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME,reportTitle);

//htmlExporter.setParameter(JRHtmlExporterParameter.OUTPUT_FILE, new java.io.File("c:/adhoc_rpt.html"));

 

htmlExporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN,Boolean.FALSE);

htmlExporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR,Boolean.TRUE);

 

htmlExporter.setParameter(JRHtmlExporterParameter.IS_WRAP_BREAK_WORD,Boolean.TRUE);

 

//htmlExporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR,"c:/");

 

htmlExporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND,Boolean.FALSE);

htmlExporter.setParameter(JRHtmlExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS,Boolean.TRUE);

 

htmlExporter.setParameter(JRHtmlExporterParameter.HTML_HEADER,htmlHeader);

 

htmlExporter.exportReport();

 

Can any body please give me some sol'n or hints regarding this.

Waiting for your earliest reply.

 

Thanks in Advance,

Regards,

Shailesh :)

Post edited by: sk_shailesh, at: 2007/08/10 12:36

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