Jump to content
Changes to the Jaspersoft community edition download ×

How to convert to HTML without pictures?


Recommended Posts

By: Yuriy Stepanyuk - ystep

How to convert to HTML without pictures?

2003-03-21 11:29

When I convert “.jprint” to “.html” reporter creates subfolder for “.html” related files.

Even though I donÂ’t have any pictures on my report it inserts plenty picture links in .html.

Now I use servlet to stream .html to a client.

For security reasons I can not make report available on web server directly.

Client receives ugly report with empty picture boxes.

How to convert without pictures?

 

 

 

 

 

By: Teodor Danciu - teodord

RE: How to convert to HTML without pictures?

2003-03-21 14:13

 

Hi,

 

Even if you don't have images in your report,

the built-in HTML exporter always use a 1 pixel

transparent image to prefectly align elements

on the page.

This way, the HTML content looks very much like

the PDF output, except for the lines, rectangles and

ellipses.

 

If you don't want any image, I'm afraid you have

to create an HTML exporter of your own.

This should not be too hard since you can reuse

much of the existing exporter's code.

 

Before doing that, you might take a look at the

"webapp" sample provided and see that it generates

HTML content and streams it on-the-fly, using

a special servlet to stream also the images.

There are no files generated on disk, so maybe

you can avoid your restrictions this way.

 

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