Loading ...
Sorry, an error occurred while loading the content.

problem with table-headers - table headers not repeating at page break

Expand Messages
  • sachin rathod
    Hi, Please find below the code wich i am using to create a table-header.Using the following FO i am creating RTF document, but when i create the RTF document
    Message 1 of 1 , Apr 21, 2005
    • 0 Attachment
      Hi,

      Please find below the code wich i am using to create a table-header.Using the following FO i am creating RTF document, but when i create the RTF document using (JFOR api) i am able to create the RTF document but i the table header is not repeated at each page break.( If the table exceeds more than one page i want the table header to repeat at each page)

      How do i go about???

      Any pointers??

      Regards,

      Sachin Rathod.

      <?xml version="1.0" encoding="UTF-8"?>
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <fo:layout-master-set>
      <fo:simple-page-master master-name="page_first" margin-bottom="9.15pt" margin-left="57.6pt" margin-right="57.6pt" margin-top="27pt" page-height="595.35pt" page-width="842pt">
      <fo:region-body region-name="xsl-region-body" margin-bottom="40.5pt" margin-top="29.75pt" overflow="visible"/>
      <fo:region-before region-name="xsl-region-before" extent="29.75pt" overflow="hidden"/>
      <fo:region-after region-name="xsl-region-after" extent="40.5pt" overflow="hidden"/>
      </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="page_first" orphans="2" white-space-collapse="false" widows="2">
      <fo:static-content flow-name="xsl-region-before" end-indent="0pt" line-height="13.7pt" start-indent="0pt" text-align="center" text-indent="0pt">
      <fo:block text-align="center" color="#000080" font-family="Arial" font-size="12pt" space-after="5pt">ABC Commercial-in-Confidence</fo:block>
      </fo:static-content>
      <fo:static-content flow-name="xsl-region-after" end-indent="0pt" line-height="10.25pt" start-indent="0pt" text-align="center" text-indent="0pt">
      <fo:block text-align="justify" color="#000000" font-family="Arial" font-size="9pt" space-before="10pt">This document and the information contained within it are confidential. Do not publish, copy, distribute or otherwise use or rely on this document without consent in writing from an authorised ABC representative. The information contained in the document is based on information which was correct as at end December 2004. </fo:block>
      </fo:static-content>
      <fo:flow flow-name="xsl-region-body"><fo:block line-height="11.4pt">
      <fo:leader line-height="11.4pt"/></fo:block>
      <fo:block end-indent="0pt" keep-with-next.within-column="always" line-height="18.25pt" line-stacking-strategy="max-height" start-indent="0pt" text-align="end" text-indent="0pt">
      <fo:external-graphic src="/abc/abclogo1.jpg" content-width="scale-to-fit" content-height="scale-to-fit" width="1.99cm" height="0.87cm" scaling="non-uniform"/></fo:block>
      <fo:block end-indent="0pt" keep-with-next.within-column="always" line-height="18.25pt" start-indent="0pt" text-align="center" text-indent="0pt"> <fo:inline font-family="harmony text" font-size="16pt" font-style="italic" font-weight="bold">ABC Level 2</fo:inline>
      </fo:block>
      <fo:block end-indent="0pt" keep-with-next.within-column="always" line-height="18.25pt" start-indent="0pt" text-align="center" text-indent="0pt"><fo:inline font-family="Harmony Text" font-size="16pt" font-style="italic" font-weight="bold">Quarterly Progress Report </fo:inline></fo:block>
      <fo:block end-indent="0pt" line-height="13.7pt" orphans="1" space-after="3pt" space-before="10pt" start-indent="0pt" text-align="start" text-indent="0pt" widows="1"><fo:inline font-family="Harmony Text" font-size="0pt" color="#FFFFFF">.</fo:inline></fo:block><fo:block line-height="5.7pt"><fo:leader line-height="5.7pt"/></fo:block><fo:block space-before="5pt" space-after="10pt" end-indent="0pt" line-height="11.4pt" start-indent="0pt" text-align="start" text-indent="0pt"><fo:inline font-family="harmony text" font-size="10pt" font-style="italic">Note - the reporting quarter's equal end March, end June, End September, and End December.</fo:inline></fo:block>
      <fo:block line-height="5.7pt"> <fo:leader line-height="5.7pt"/> </fo:block> <fo:block line-height="5.7pt"> <fo:leader line-height="5.7pt"/> </fo:block> <fo:table end-indent="5.4pt" start-indent="21.3pt" table-layout="fixed"> <fo:table-column column-width="92.2pt"/><fo:table-column column-width="56.7pt"/>
      <fo:table-column column-width="70.85pt"/>
      <fo:table-column column-width="78pt"/>
      <fo:table-column column-width="70.85pt"/>
      <fo:table-column column-width="77.95pt"/>
      <fo:table-column column-width="70.9pt"/>
      <fo:table-column column-width="205.5pt"/>
      <fo:table-header>
      <fo:table-row>
      <fo:table-cell border-bottom="1.5pt double black" border-left="0.75pt solid black" border-right="0.5pt solid black" border-top="0.75pt solid black" padding-left="5.4pt" padding-right="5.4pt">
      <fo:block end-indent="0pt" line-height="13.7pt" start-indent="0pt" text-align="center" text-indent="0pt">
      <fo:inline font-family="harmony text" font-size="12pt" font-weight="bold">JPG</fo:inline>
      </fo:block>
      </fo:table-cell>
      <fo:table-cell border-bottom="1.5pt double black" border-left="0.5pt solid black" border-right="0.75pt solid black" border-top="0.75pt solid black" padding-left="5.4pt" padding-right="5.4pt"><fo:block end-indent="0pt" line-height="13.7pt" start-indent="0pt" text-align="center" text-indent="0pt"><fo:inline font-family="harmony text" font-size="12pt" font-weight="bold">Date Sent to ACA</fo:inline></fo:block></fo:table-cell><fo:table-cell border-bottom="1.5pt double black" border-left="0.75pt solid black" border-right="0.75pt solid black" border-top="0.75pt solid black" padding-left="5.4pt" padding-right="5.4pt"><fo:block end-indent="0pt" line-height="13.7pt" start-indent="0pt" text-align="center" text-indent="0pt">
      <fo:inline font-family="harmony text" font-size="12pt" font-weight="bold">Project / CNI No's</fo:inline></fo:block></fo:table-cell><fo:table-cell border-bottom="1.5pt double black" border-left="0.75pt solid black" border-right="0.75pt solid black" border-top="0.75pt solid black" padding-left="5.4pt" padding-right="5.4pt"><fo:block end-indent="0pt" line-height="13.7pt" start-indent="0pt" text-align="center" text-indent="0pt">
      <fo:inline font-family="harmony text" font-size="12pt" font-weight="bold">Date</fo:inline></fo:block><fo:block end-indent="0pt" line-height="13.7pt" start-indent="0pt" text-align="center" text-indent="0pt">
      <fo:inline font-family="harmony text" font-size="12pt" font-weight="bold">Planned for Remediation</fo:inline></fo:block>
      </fo:table-cell>
      <fo:table-cell border-bottom="1.5pt double black" border-left="0.75pt solid black" border-right="0.75pt solid black" border-top="0.75pt solid black" padding-left="5.4pt" padding-right="5.4pt">
      <fo:block end-indent="0pt" line-height="13.7pt" start-indent="0pt" text-align="center" text-indent="0pt">
      <fo:inline font-family="harmony text" font-size="12pt" font-weight="bold">Revised Completion Date</fo:inline></fo:block></fo:table-cell>
      <fo:table-cell border-bottom="1.5pt double black" border-left="0.75pt solid black" border-right="0.75pt solid black" border-top="0.75pt solid black" padding-left="5.4pt" padding-right="5.4pt">
      <fo:block end-indent="0pt" line-height="13.7pt" start-indent="0pt" text-align="center" text-indent="0pt"><fo:inline font-family="harmony text" font-size="12pt" font-weight="bold">Date Remediation Completed</fo:inline></fo:block></fo:table-cell>
      <fo:table-cell border-bottom="1.5pt double black" border-left="0.75pt solid black" border-right="0.75pt solid black" border-top="0.75pt solid black" padding-left="5.4pt" padding-right="5.4pt"><fo:block end-indent="0pt" line-height="13.7pt" start-indent="0pt" text-align="center" text-indent="0pt">
      <fo:inline font-family="harmony text" font-size="12pt" font-weight="bold">Completed on time?</fo:inline></fo:block></fo:table-cell><fo:table-cell border-bottom="1.5pt double black" border-left="0.75pt solid black" border-right="0.75pt solid black" border-top="0.75pt solid black" padding-left="5.4pt" padding-right="5.4pt">
      <fo:block end-indent="0pt" keep-with-next.within-column="always" line-height="13.7pt" start-indent="0pt" text-align="center" text-indent="0pt"><fo:inline font-family="harmony text" font-size="12pt" font-weight="bold">Comments</fo:inline>
      </fo:block></fo:table-cell></fo:table-row>
      </fo:table-header>
      <fo:table-body end-indent="0pt" start-indent="0pt"><fo:table-row height="12pt"><fo:table-cell border="0.25pt solid #000000" padding-left="5.4pt" padding-right="5.4pt"><fo:block end-indent="0pt" start-indent="0pt" text-align="center" wrap-option="no-wrap" text-indent="0pt" line-height="11.4pt">
      <fo:inline font-family="harmony text" font-size="11pt" wrap-option="no-wrap">FREESTONE</fo:inline></fo:block></fo:table-cell><fo:table-cell border="0.25pt solid #000000" padding-left="5.4pt" padding-right="5.4pt"><fo:block end-indent="0pt" start-indent="0pt" text-align="center" text-indent="0pt" line-height="11.4pt"><fo:inline font-family="harmony text" font-size="11pt">AUG-2003</fo:inline></fo:block></fo:table-cell>
      <fo:table-cell border="0.25pt solid #000000" padding-left="5.4pt" padding-right="5.4pt"><fo:block end-indent="0pt" start-indent="0pt" text-align="center" text-indent="0pt" line-height="11.4pt"><fo:inline font-family="harmony text" font-size="11pt">95107295</fo:inline></fo:block></fo:table-cell><fo:table-cell border="0.25pt solid #000000" padding-left="5.4pt" padding-right="5.4pt"><fo:block end-indent="0pt" start-indent="0pt" text-align="center" text-indent="0pt" line-height="11.4pt"><fo:inline font-family="harmony text" font-size="11pt">30/10/2003</fo:inline></fo:block></fo:table-cell>
      <fo:table-cell border="0.25pt solid #000000" padding-left="5.4pt" padding-right="5.4pt"><fo:block end-indent="0pt" start-indent="0pt" text-align="center" text-indent="0pt" line-height="11.4pt"><fo:inline font-family="harmony text" font-size="11pt">30/04/2004</fo:inline></fo:block></fo:table-cell><fo:table-cell border="0.25pt solid #000000" padding-left="5.4pt" padding-right="5.4pt"><fo:block end-indent="0pt" start-indent="0pt" text-align="center" text-indent="0pt" line-height="11.4pt">
      <fo:inline font-family="harmony text" font-size="11pt">01/04/2004</fo:inline></fo:block></fo:table-cell><fo:table-cell border="0.25pt solid #000000" padding-left="5.4pt" padding-right="5.4pt"><fo:block end-indent="0pt" start-indent="0pt" text-align="center" text-indent="0pt" line-height="11.4pt">
      <fo:inline font-family="harmony text" font-size="11pt">Yes</fo:inline></fo:block></fo:table-cell><fo:table-cell border="0.25pt solid #000000" padding-left="5.4pt" padding-right="5.4pt"><fo:block end-indent="0pt" start-indent="0pt" text-align="start" text-indent="0pt" line-height="11.4pt"><fo:inline font-family="harmony text" font-size="11pt">After completion of project 95107295 to scope the work, project 95156286 was entered for subsequent remedial activity.</fo:inline></fo:block></fo:table-cell>
      </fo:table-row>
      .
      .
      .
      .
      ..
      .
      .
      .


      <fo:table-row height="12pt">
      </fo:flow>
      </fo:page-sequence>
      </fo:root>


      __________________________________________________
      Do You Yahoo!?
      Tired of spam? Yahoo! Mail has the best spam protection around
      http://mail.yahoo.com

      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.