Kilmer, Erich wrote:

I am trying to design an article using FOP and could use some help in its layout. The document in an invoice. The first page has a large header and footer with various invoice data. In the body or content section of the first page I want to have a table that contains line item data in each row. Because the first page has used up so much space in its header and footer there is only room for about 2-3 rows of line item data. On subsequent pages I would like to carryover the line item table. How can I get the line item table flow to start on the first page and then continue on subsequent pages? Thanks,
Erich Kilmer


Here's a working example (trimmed down of course)

Chuck

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<fo:layout-master-set>
<fo:simple-page-master master-name="page-first" page-height="280mm" page-width="215mm" margin-top="13mm" margin-bottom="13mm" margin-left="13mm" margin-right="13mm">
<fo:region-body margin-top="51mm" margin-bottom="0mm" margin-left="0in" margin-right="0in"/>
<fo:region-before extent="51mm" region-name="header-first"/>
<fo:region-after extent="0mm" region-name="footer-first"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="page-rest" page-height="280mm" page-width="215mm" margin-top="13mm" margin-bottom="13mm" margin-left="13mm" margin-right="13mm">
<fo:region-body margin-top="21mm" margin-bottom="0mm" margin-left="0in" margin-right="0in"/>
<fo:region-before extent="21mm" region-name="header-rest"/>
<fo:region-after extent="0mm" region-name="footer-rest"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="master-sequence">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference page-position="first" master-name="page-first"/>
<fo:conditional-page-master-reference page-position="rest" master-name="page-rest"/>
<fo:conditional-page-master-reference master-name="page-rest"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-name="master-sequence">
<fo:static-content flow-name="header-first">
<fo:block>
. . . Place first page header content here
</fo:block>
</fo:static-content>
<fo:static-content flow-name="header-rest">
<!-- This is the header for the rest of the pages -->
<fo:block text-align="end" font-size="10pt" font-family="serif" line-height="14pt">
Invoice -
GSJHGSJ-0943028392-JKK
pg. <fo:page-number/> of <fo:page-number-citation ref-id="terminator"/>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="footer-first"/>
<fo:static-content flow-name="footer-rest"/>
<fo:flow flow-name="xsl-region-body">
<fo:table font-family="Helvetica" font-size="7pt" font-weight="normal">
<fo:table-column column-width="18mm" column-number="1"/>
<fo:table-column column-width="13mm" column-number="2"/>
<fo:table-column column-width="20mm" column-number="3"/>
etc.
<fo:table-header>
<fo:table-row>
<fo:table-cell display-align="after" column-number="1" border-bottom-style="solid" border-bottom-width="thin">
<fo:block text-align="start">
<fo:inline> DATE </fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="after" column-number="2" border-bottom-style="solid" border-bottom-width="thin">
<fo:block text-align="start">
<fo:inline> ORIGIN </fo:inline>
</fo:block>
</fo:table-cell>
etc.
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell border-bottom-width="0mm" column-number="1">
<fo:block text-align="start">
<fo:inline>01-Mar-2000</fo:inline>
</fo:block>
</fo:table-cell>
etc.
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>






Reply via email to