Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » table in table create blank page at last
table in table create blank page at last [message #1769911] Sat, 05 August 2017 12:56 Go to next message
charles candy is currently offline charles candyFriend
Messages: 24
Registered: March 2013
Junior Member
I don't know if this is bugs.
I have one main table then inside contain alot tables

Main table
row
cell -> tableA
row
cell -> tableB
row
cell -> tableC


using visibility and main table DataSet to decide which report to generate.

after try and error , this what i found

- when I try run each tableA, tableB , TableC on seperate report file, no blank page at last

- only one table and one detail row , won't generate blank page at last
Main table
row
cell -> tableA


- if there are 2 detail row , even though second detail row visibility disable , this will generate extra blank page at last

Main table
row
cell -> tableA
row -> visibility hide element "true"

- 2 detail row contain same table (copy and paste) won't create blank page at last
Main table
row
cell -> tableA
row
cell -> tableA


I really lose . any advice how to make sure that the blank page at last won't show up





Re: table in table create blank page at last [message #1769972 is a reply to message #1769911] Mon, 07 August 2017 08:13 Go to previous messageGo to next message
charles candy is currently offline charles candyFriend
Messages: 24
Registered: March 2013
Junior Member
I know what cause the bugs.

Main table
row
cell -> tableA
row -> visibility hide element "true"

if TableA page break interval is set (i set to 9) . then the extra page at end show up .

test on version 4.6 and 4.7RC5



I also had tried in group break - > page break -> after -> always excluding the last but endup after the first break somehow every 9 lines print (count including header) , a page break occurred

is there another method where i can page break every 9 line printed without using "page break interval". i think the count go crazy when it is inside another table






Re: table in table create blank page at last [message #1770003 is a reply to message #1769972] Mon, 07 August 2017 12:49 Go to previous messageGo to next message
charles candy is currently offline charles candyFriend
Messages: 24
Registered: March 2013
Junior Member

I notice that page break interval will also wrong even if one table (not table in table).
in my test , I generate 200+ pages . I notice that some pages it break at line 8 rather than 9.

I manage to get it correct using break using visibility

if ( BirtMath.mod(row["sno"], 9) == 0) {
false
} else {
true
}

but last empty page still show up if I have page break always in group

if only 1 row , when i just want generate tableA , no blank page show up

Main table
row
cell -> tableA


/////////////////////////////////////////////

Main table
row
cell -> tableA
row
cell -> tableB
row
cell -> tableC

generate tableA or TableB will have blank page at last but generate tableC will not have blank page at last .
if I generate one report tableA, TableB, TableC then no blank page at last , no blank page between TableA and TableB or TableB and TableC.


I don't know what todo . can someone help me ?







Re: table in table create blank page at last [message #1770353 is a reply to message #1770003] Thu, 10 August 2017 10:07 Go to previous message
charles candy is currently offline charles candyFriend
Messages: 24
Registered: March 2013
Junior Member
Ok . after alot try and error , I found the bugs . this happen also when using grid

The cause is group break in subreport table where Page break after set always and main table has a row after (where contain another table or visibility is disable)

the only solution is not use main table . put all subreport in report body , then using visibility on table to to generate which table

Body
TableA
TableB
TableC






Previous Topic:connection profile
Next Topic:Running Count across time series group
Goto Forum:
  


Current Time: Fri Apr 26 03:37:24 GMT 2024

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

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

Back to the top