Jump to content
Changes to the Jaspersoft community edition download ×

Trouble in page breaks


2004 IR Help

Recommended Posts

By: Allan Chamon - achamon

Trouble in page breaks

2004-09-27 13:56

I?m trying to export a report to HTML format. This report has a single group which is

used to break pages (I checked the option "Start on a new page" for this group).

I configured the A4 page sizes, but when I open this report in Internet

Explorer the page breaks don?t work fine. Besides, when I export the same report to PDF format

it works fine. So, what I have to do in order to get the same result using either HTML or PDF format?

 

 

Thanks in advance.

 

 

 

 

By: Allan Chamon - achamon

RE: Trouble in page breaks

2004-09-28 06:06

Please, I need some help urgently.

 

Thanks a lot.

 

 

 

 

By: Franco Weichel - franco_weichel

RE: Trouble in page breaks

2004-09-28 06:11

What HTML Tag you expect to be inserted at the position of the page break?

 

Franco

 

 

 

 

By: Allan Chamon - achamon

RE: Trouble in page breaks

2004-09-28 07:28

None, I thought that JasperReport would do it for me. Am I wrong?

My report is displayed fine in PDF format but HTML presentation doesn?t respect the page breaks. I setup A4 page size in Ireport, but when I open the report in Internet Explorer and use the "Preview" approach, it seems the pages are bigger than actually they are so that they are not displayed very well.

I would like to show each group in a new page.

 

 

 

 

By: Allan Chamon - achamon

RE: Trouble in page breaks

2004-09-28 11:54

There is a way to force page breaks in HTML, using the style "page-break-before:always". I know it is not a portable way to do that, but you can force page breaks.

But even I use this approach it wouldn?t work, because the pages aren?t started properly in HTML. I mean, the report groups aren?t presented in each page as expected, some of them are presented in the middle of the page not on top.

How can I solve this problem?

 

Thanks in advance.

 

 

 

 

 

 

By: Franco Weichel - franco_weichel

RE: Trouble in page breaks

2004-09-29 00:07

> How can I solve this problem?

 

Extend JRHtmlExporter to your needs.

or

Use something else to generate HTML.

 

Franco

 

 

 

 

By: Franco Weichel - franco_weichel

RE: Trouble in page breaks

2004-09-28 09:10

There is no 'newPage' Tag in HTML !!!

 

HTML is always a single page.

 

The page break you see in the IE of whatever Browser you use is just a 'cut' of a single HTML page into parts that are printable by your printer.

 

Solution -> generate PDF and let the user upload the PDF.

 

 

Franco

 

 

 

 

By: Mufasa - mufasa

RE: Trouble in page breaks

2005-01-04 08:29

However, there is a CSS2 setting though that is respected by some browsers (mainly IE):

 

exporter.setParameter(JRHtmlExporterParameter.BETWEEN_PAGES_HTML,

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

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