Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Word doc has unwanted empty paragraphs
Word doc has unwanted empty paragraphs [message #736014] Thu, 13 October 2011 11:11 Go to next message
Gerald Ploner is currently offline Gerald PlonerFriend
Messages: 19
Registered: July 2009
Junior Member
Hello,

I have this problem with BIRT version 3.7.1.

After fixing https://bugs.eclipse.org/bugs/show_bug.cgi?id=352067 the generated Word document is modified in comparison to version <=3.7.0. A lot of empty paragraphs are visible and cause in my report:

1) additional space between tables.

2) that the content of all table cells containing a nested grid got an additional empty line (with the exception of the first table row). As there are multiple tables with a lot of rows, the tables are bloated and need more place as necessary.

3) that the dynamical setting of the master page height for a large image, stored within a table containing image slices, doesn't work anymore. Therefore a large image will be wrapped and displayed at 2 pages which should be avoided in my use case (if possible).

I think that in the context of the fix of Bug 352067 the writing of hidden paragraphes was replaced by empty paragraphs...
If I replace in the generated Word document the empty paragraph "<w:p/>" by the hidden paragraph "<w:p><w:rPr><w:vanish w:val="on"/></w:rPr></w:p>" then I have the same, desired layout as if I use Birt 3.7.0.

How can I achieve the same appearance of my report with BIRT 3.7.1 using Word (without displaying paragraphes/formatting characters)?

Possible workarounds:
For 1): I could create a further component library for BIRT >= 3.7.1 and change the layout for all table components (decrease margins, padding...). This is time consuming and I would have to maintain additional rptdesigns in future(we already have to support report generation with BIRT 2.3, 2.5, 2.6, 3.7... in html, pdf and word)

For 3): Calculation of master page height: I could programmatically add an additional height for empty paragraphs (if Birt >= 3.7.1 and format=Word)

For 2): ??? I don't see a workaround. I think it's a bug that the use of a grid within a table cell causes a new line in nearly all table rows and I can't get rid of the display of this empty paragraph (e.g. by toggling the visibility of formatting characters in Word).

Best regards,
Gerald.
Re: Word doc has unwanted empty paragraphs [message #736128 is a reply to message #736014] Thu, 13 October 2011 15:58 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Gerald,

Could open another bugzilla entry with these comments and reference the
352067 bug as well?

Jason

On 10/13/2011 7:11 AM, Gerald Ploner wrote:
> Hello,
>
> I have this problem with BIRT version 3.7.1.
>
> After fixing https://bugs.eclipse.org/bugs/show_bug.cgi?id=352067 the
> generated Word document is modified in comparison to version <=3.7.0. A
> lot of empty paragraphs are visible and cause in my report:
>
> 1) additional space between tables.
>
> 2) that the content of all table cells containing a nested grid got an
> additional empty line (with the exception of the first table row). As
> there are multiple tables with a lot of rows, the tables are bloated and
> need more place as necessary.
>
> 3) that the dynamical setting of the master page height for a large
> image, stored within a table containing image slices, doesn't work
> anymore. Therefore a large image will be wrapped and displayed at 2
> pages which should be avoided in my use case (if possible).
>
> I think that in the context of the fix of Bug 352067 the writing of
> hidden paragraphes was replaced by empty paragraphs...
> If I replace in the generated Word document the empty paragraph "<w:p/>"
> by the hidden paragraph "<w:p><w:rPr><w:vanish
> w:val="on"/></w:rPr></w:p>" then I have the same, desired layout as if I
> use Birt 3.7.0.
>
> How can I achieve the same appearance of my report with BIRT 3.7.1 using
> Word (without displaying paragraphes/formatting characters)?
>
> Possible workarounds:
> For 1): I could create a further component library for BIRT >= 3.7.1 and
> change the layout for all table components (decrease margins,
> padding...). This is time consuming and I would have to maintain
> additional rptdesigns in future(we already have to support report
> generation with BIRT 2.3, 2.5, 2.6, 3.7... in html, pdf and word)
>
> For 3): Calculation of master page height: I could programmatically add
> an additional height for empty paragraphs (if Birt >= 3.7.1 and
> format=Word)
>
> For 2): ??? I don't see a workaround. I think it's a bug that the use of
> a grid within a table cell causes a new line in nearly all table rows
> and I can't get rid of the display of this empty paragraph (e.g. by
> toggling the visibility of formatting characters in Word).
>
> Best regards,
> Gerald.
Re: Word doc has unwanted empty paragraphs [message #736608 is a reply to message #736128] Fri, 14 October 2011 06:44 Go to previous messageGo to next message
Gerald Ploner is currently offline Gerald PlonerFriend
Messages: 19
Registered: July 2009
Junior Member
Hello Jason,

thanks for your answer.

I created the bugzilla entry https://bugs.eclipse.org/bugs/show_bug.cgi?id=360915.

Best regards,
Gerald.
Re: Word doc has unwanted empty paragraphs [message #736978 is a reply to message #736608] Fri, 14 October 2011 14:33 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Gerald,

Thanks for posting the number.

Jason

On 10/14/2011 2:44 AM, Gerald Ploner wrote:
> Hello Jason,
>
> thanks for your answer.
>
> I created the bugzilla entry
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=360915.
>
> Best regards,
> Gerald.
Previous Topic:Differentiate ComboBox and ListBox from BIRT Runtime API
Next Topic:Hide report for wrong parameters in Birt Report viewer
Goto Forum:
  


Current Time: Sun Dec 21 21:43:37 GMT 2014

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

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