Jump to content

JasperReport creates for HTML a folder with CSS and Font


unvorgiven2

Recommended Posts

Hi everybody,

since a Java and Jasper update, the "new" HtmlExporter class creates for each html file a folder with a css and font file. I am working with ARIAL.TTF. The fonts.jar was always a part of the project and is in the lib folder.

In the previous version with Java 1.7 and jasperrepors-4.5.0.jar i used the JRHtmlExporter class to generate the file -> this was working fine

 JRHtmlExporter jrHtmlExporter = new JRHtmlExporter(); jrHtmlExporter.setParameter(JRHtmlExporterParameter.JASPER_PRINT, print); jrHtmlExporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, false); jrHtmlExporter.setParameter(JRHtmlExporterParameter.OUTPUT_FILE_NAME, filePathAndName); jrHtmlExporter.exportReport();[/code]

After the update "jasperreports-5.6.1.jar" - JRHtmlExporter was deprecated 

The current code is using the HtmlExporter

HtmlExporter htmlExporter = new HtmlExporter();htmlExporter.setExporterInput(new SimpleExporterInput(print));htmlExporter.setExporterOutput(new SimpleHtmlExporterOutput(filePathAndName));htmlExporter.exportReport();[/code]

After the change the behavior is different. How can i changed that? 

Thx for your help

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