Jump to content
Changes to the Jaspersoft community edition download ×

to get HTML String


2004 IR Help

Recommended Posts

By: fiona - nlasystems

to get HTML String

2005-01-11 05:49

I normally get a pdf byte array directly on the fly without having to create a JasperPrint object using

 

net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(jasperReport, parameters, connection)

 

Can I do this for HTML and get a String or a byte array? The only methods I can see create a file.

 

 

 

 

By: Teodor Danciu - teodord

RE: to get HTML String

2005-01-11 08:41

 

Hi,

 

This is possible if you don't have images in the

generated document and if you use the JRHtmlExporter directly.

This way you could also put the IS_USING_IMAGES_TO_ALIGN

exporter parameter to Boolean.FALSE.

 

You could check the provided "webapp" sample

because it does not generate HTML files on disk,

but rather streams out HTML content on the fly.

 

I hope this helps.

Teodor

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