Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » BIRT 4.7.0 - linefeed missing ?(Since we did an upgrade to BIRT 4.7.0 some text is printed on the same line)
BIRT 4.7.0 - linefeed missing ? [message #1785086] Mon, 09 April 2018 10:10 Go to next message
Luc Van den heuvel is currently offline Luc Van den heuvelFriend
Messages: 3
Registered: April 2018
Junior Member
I hope this is the right place to post my question
Since we did an upgrade to BIRT 4.7.0, some text is printed on the same line as if there is no linefeed.
This happens only on the top of a page, but not consistently on every page.
With the previous version we never had that problem with the same data.
Any suggestions, where to start to look

Thanks a lot
Kind regards

LucVdh
Re: BIRT 4.7.0 - linefeed missing ? [message #1785925 is a reply to message #1785086] Mon, 23 April 2018 08:17 Go to previous messageGo to next message
Alexander Wieland is currently offline Alexander WielandFriend
Messages: 5
Registered: November 2017
Junior Member
Hello LucVdh,

do you possibly have a sample report that you can make available here, where your problem appears?
Which output formats do you use? For our reports, which are created in PDF format, we use the run and render task separately. Here you have the possibility to set render options.

      ...
      // add render options
      PDFRenderOption PDF_OPTIONS = new PDFRenderOption();
      PDF_OPTIONS.setOutputFileName(PDFFileName);
      PDF_OPTIONS.setOutputFormat("pdf");

      // ensure that texts are not cut off, but wrapped.
      PDF_OPTIONS.setOption(PDFRenderOption.PDF_TEXT_WRAPPING, true);
      PDF_OPTIONS.setOption(PDFRenderOption.PDF_HYPHENATION, true);
      ...


Many greetings
Alex

I hope it might help.
Re: BIRT 4.7.0 - linefeed missing ? [message #1786369 is a reply to message #1785925] Wed, 02 May 2018 08:14 Go to previous message
Luc Van den heuvel is currently offline Luc Van den heuvelFriend
Messages: 3
Registered: April 2018
Junior Member
Hello Alexander Wieland,

Thanks for your reaction.
This is the answer I got from Thomas, the java developer that worked on this issue:

We use the PDF format to render this report.
I tested this as well with
• HTML
no problem rendering there, but when printing the page it shows scrollbars
• DOC(X)?
the report is rendered with tables all over the place and text got cut off because of overflow

I don't completely understand how the extra rendering options would solve the problem, since I have tried (and failed) by switching some properties in the report designer that have to do with page breaks (page-break-after, page-break-before and page-break-inside), but I discovered that the most extreme value is either "always" (which we do not want), or "avoid" (which still causes the problem to occur)

Eventually we found a workaround to our problem by manipulating the incoming HTML.
We applied following modifications
• replace('<p>', '')
• replace('</p>', '<br/>')


Kind regards

Luc Van den heuvel
Previous Topic:Linebreaks
Next Topic:Freez the header in excel
Goto Forum:
  


Current Time: Thu Apr 25 14:44:04 GMT 2024

Powered by FUDForum. Page generated in 0.02898 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top