Jump to content
Changes to the Jaspersoft community edition download ×

direct export html to output stream


Recommended Posts

By: Jemmee Yung - jemmee

direct export html to output stream

2003-07-09 05:11

hi, i export reports using JRHtmlExporter to outputstream for users to view contents directly on web browsers. it produces sth like

 

<tr>

<td><img src="nullpx" width=40 height=1></td>

<td><img src="nullpx" width=200 height=1></td>

<td><img src="nullpx" width=50 height=1></td>

<td><img src="nullpx" width=260 height=1></td>

<td><img src="nullpx" width=45 height=1></td>

</tr>

 

that i suspect should be <path>/px may i know if there is anyway i can set the path? i guess i can simply get px in demo folders

 

thanks in advance

 

 

 

 

By: Teodor Danciu - teodord

RE: direct export html to output stream

2003-07-09 05:21

 

Hi,

 

Please take a look at the provided "webapp" sample

and see how HTML content is streamed out to the

browser.

 

There is a trick there with a servlet that delivers the

images.

 

Thank you,

Teodor

 

 

 

 

 

By: Jemmee Yung - jemmee

RE: direct export html to output stream

2003-07-09 08:35

ha.. Teodor, i got it... thanks for your pointer and your good work

 

i added this

 

exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "/images/");

 

and it works :)

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