Jump to content
Changes to the Jaspersoft community edition download ×

Page breaks while printing HTML report


Recommended Posts

By: Alex Murashko - newbie25

Page breaks while printing HTML report

2003-01-07 05:05

I've a problem while print multipage report. It's used in webapp w/o any javaapplets on clientside.

So i just use exporter to export report as html and output it to client. But while print browser do not split report by pages as it should do. I know browser using it's own pagination system and do not correlate with jasper. To them i used exporter.setParameter(JRHtmlExporterParameter.BETWEEN_PAGES_HTML, "<P STYLE='page-break-after:always'>");

 

But in case of complexity HTML report it ignore this tag nested in couple of tables.

Anyone have solution?

 

Thank you,

Alex.

 

 

 

 

 

By: Alex Murashko - newbie25

RE: Page breaks while printing HTML report

2003-01-07 06:07

Thanks a lot.

It's almost solve my problem.

 

I'm using IE, so no problem at this point.

 

P.S. Awesome tool, im really impressed.

 

 

 

 

By: Teodor Danciu - teodord

RE: Page breaks while printing HTML report

2003-01-07 06:16

 

Hi,

 

"Almost" is not good enough.

 

But I guess you only have to reduce the size of your

report a little or give up using page margins, so that

it fits exactly into the printer page.

 

Thank you,

Teodor

 

 

 

 

 

By: Teodor Danciu - teodord

RE: Page breaks while printing HTML report

2003-01-07 05:30

 

Hi,

 

Put this around the page for a break

(thanks to Brian):

 

<div style="page-break-after: always">

... Page 1 Content ...

</div>

 

<div style="page-break-after: always">

... Page 2 Content ...

</div>

 

It might also depend on the browser you use.

 

Thank you,

Teodor

 

 

 

 

 

By: padmini - padmini

RE: Page breaks while printing HTML report

2003-08-13 01:02

HI ,

 

I have used the following for a page break

 

exporter.setParameter(JRHtmlExporterParameter.BETWEEN_PAGES_HTML,

"<div style='page-break-after:always'></div>");

 

This works fine with IE . But there is a problem with netscape . Is there any other work-arround for netscape .

 

Thanks

Padmini

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