I've been trying for some time now to figure out how to get a table that
spans multiple pages to always have the same size border on each page.
Simplified, my page needs to look like this (The '_'s and '|' represent the
actual printed border):

<<<top of page>>>
 ______________
|static header |
|______________|
 ______________
|table header  | <-
|______________|   |
|   table      |   |
|   content    |   |
|              |  I'd like this height to be constant
| (can span    |   |
|  multiple    |   |
|  pages)      |   |
|______________| <-
<<<bottom of page>>>

The problem is I can't figure out how to get the border around the table to
always extend to the bottom of the page. Right now if the table ends after
three rows on the third page, so does the border.

I keep thinking there must be some simple way to do this that I'm missing.
This border can/should be in the exact same position for every page in my
report, so maybe I can do something with region-before and region-after? I
think the tricky part is that the table can span multiple pages.  Right now
I wrap the entire content table in a single-cell table, and put the border
in the column definition of that outer table. I used column because I also
have some stuff in the header of the outer table that may or may not be
repeated after the first page--depending on business rules. I'm pretty sure
if I put the border in cell or block has the same effect.

I've attached the FO and PDF if anyone wants to look at it. I marked the
spot in the FO where I set the border with '<!-- BORDER SET HERE -->'.

thx a lot,
Matt Savino




> -----Original Message-----
> From: Arved Sandstrom [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 18, 2002 3:50 PM
> To: [EMAIL PROTECTED]
> Subject: RE: region body formatting
> 
> 
> fo:region-body takes the standard background properties, such as
> "background-color".
> 
> You cannot put a border on a region directly, since in XSL 1.0 the
> border-width on regions is forced to "0". The workaround 
> would be to fill up
> the region with a block-container, and put the border on it. 
> But then you
> may as well apply the background to that instead.
> 
> Regards,
> AHS
> 
> -----Original Message-----
> From: Josh Campbell [mailto:[EMAIL PROTECTED]
> Sent: February 18, 2002 7:34 PM
> To: [EMAIL PROTECTED]
> Subject: region body formatting
> 
> 
> I'm trying to get a pdf of an A4 page with a 1cm margin of white
> surrounding a grey central area.
> So far I've got the 1cm margin set up using the 
> simple-page-master but I
> can't figure out how to make the region-body have a 
> background color or
> border.
> 
> Here's my layout-master-set so far:
> 
> <fo:layout-master-set>
>         <fo:simple-page-master master-name="main" page-height="29.7cm"
> page-width="21cm" margin-top="1cm" margin-bottom="1cm" 
> margin-left="1cm"
> margin-right="1cm">
>             <fo:region-body />
>         </fo:simple-page-master>
>     </fo:layout-master-set>
> 
> Does anyone have any suggestions?
> 
> 
> Thanks
> Josh Campbell
> 
> ZYPE - Graphical Interface Design
> Phone: 03 3862094
> Mobile: 021 400 472
> Web: www.zype.co.nz
> 
> 
> 

<<attachment: ReportOutput.zip>>

Reply via email to