Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Fixed size table in PDF format
Fixed size table in PDF format [message #1223313] Mon, 23 December 2013 03:26 Go to next message
Alex Che is currently offline Alex CheFriend
Messages: 2
Registered: December 2013
Junior Member
Hi All,
need help with the following task.

I have a report that contains some instructions as well as tickboxes, signature fields, etc. The report is printed, then someone fills it in and then report is OCRed to check for signatures / checkmarks and so on.

I have a grid with 5 rows, rows 1 and 5 are always fixed height, and these rows contain all machine - readable fields. These 2 rows has to be perfectly aligned on a page, i.e. to be always exactly on the same place on a page when printed in PDF.

Rows 3-5 can shrink or grow dynamicly depending on their content.

Question - how can i enforce the row 5 to be always at the bottom of page? If rows 2 and three shrank i want row 4 to grow and fill extra space in a way that row 5 is at the bottom of page.

What i tried so far:
1. include these 5 rows in another row / cell, and specify height in this wrapper row, make it non shrinkable - didn't help. I played allot with different settings for internal rows, can't manage to force row 4 to grow, it only shrinks for some reason.
2. Another idea that i did not manage to implement - is to put some code in onRender() of the row 4, so it is executed after the row 3 is rendered and it's dimensions and positions are known, so i can calculate the required height of row 4 and set it progrmmatically . Here i didn't find a way to "read" the actual hight / position of the Row 3. I can only read static values that were specified for the row in the designer.

Thanks in advance,
Alex
Re: Fixed size table in PDF format [message #1224019 is a reply to message #1223313] Wed, 25 December 2013 09:11 Go to previous messageGo to next message
Colin Sutton is currently offline Colin SuttonFriend
Messages: 121
Registered: July 2009
Senior Member
Alex Che <forums-noreply@xxxxxxxx> wrote:
> Hi All,
> need help with the following task.
>
> I have a report that contains some instructions as well as tickboxes,
> signature fields, etc. The report is printed, then someone fills it in
> and then report is OCRed to check for signatures / checkmarks and so on.
> I have a grid with 5 rows, rows 1 and 5 are always fixed height, and
> these rows contain all machine - readable fields. These 2 rows has to be
> perfectly aligned on a page, i.e. to be always exactly on the same place
> on a page when printed in PDF.
>
> Rows 3-5 can shrink or grow dynamicly depending on their content.
>
> Question - how can i enforce the row 5 to be always at the bottom of
> page? If rows 2 and three shrank i want row 4 to grow and fill extra
> space in a way that row 5 is at the bottom of page.
>
> What i tried so far:
> 1. include these 5 rows in another row / cell, and specify height in this
> wrapper row, make it non shrinkable - didn't help. I played allot with
> different settings for internal rows, can't manage to force row 4 to
> grow, it only shrinks for some reason.
> 2. Another idea that i did not manage to implement - is to put some code
> in onRender() of the row 4, so it is executed after the row 3 is rendered
> and it's dimensions and positions are known, so i can calculate the
> required height of row 4 and set it progrmmatically . Here i didn't find
> a way to "read" the actual hight / position of the Row 3. I can only read
> static values that were specified for the row in the designer.
>
> Thanks in advance,
> Alex
Define a two row grid, include the table in both rows, make table 1 row 5
invisible in the first grid row, table 2 rows 1-4 invisible in the second
grid row. Adjust the grid and table row sizes as required. Not efficient,
but should do the job.

--
Colin
Re: Fixed size table in PDF format [message #1225208 is a reply to message #1224019] Sun, 29 December 2013 03:29 Go to previous message
Alex Che is currently offline Alex CheFriend
Messages: 2
Registered: December 2013
Junior Member
Hi Colin,
thank you for your reply.

What i ended up with even before getting to your suggestion is i moved rows 2-3-4 into another nested grid, so i have 3 rows on top level and then row 2 containing three more rows in the nested grid. After that i specified fixed sizes for all three rows on the top level, and this somehow worked. Even if nested rows shrink, top level rows maintain their height and extra space is just left blank. For some reason when i tried to move all 5 rows into a nested row it didn't work, though the idea was the same.

Anyway, thanks for looking into this.
Previous Topic:how to set excel column width as content width
Next Topic:Birt Report
Goto Forum:
  


Current Time: Tue Apr 16 06:26:06 GMT 2024

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

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

Back to the top