I used the commandline: fop.sh -fo span.fo -pdf span.pdf.
As you have a variable for your report header - this suggests to me that you are doing other processing before you actually produce final output?
I use tables and spanning rows / columns almost every day - and have never hit any problems with FOP 0.20.5.
*There are other problems with tables - but not with cols/rows spanned.)
I've always downloaded the binary installations - so have never built FOP from source.
I use it on RedHat 7.3 and Fedora Core 2
Below is the output if I use 'fop.sh -fo span.fo -txt span.txt' What do you get on your system?
${report.headerLeft[0]}
---Item----Responses------------Correct-------%--Correct-----------Errors--------%--Errors-
Num
Group of Rows #1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
1 A B C D E
2 A B C D E
3 A B C D E
4 A B C D E
Group of Rows #2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
1 A B C D E
2 A B C D E
3 A B C D E
4 A B C D E
-------------------------------------------------------------------------------------------|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Richard Mixon (qwest) wrote:
I am having trouble getting a cell to span multiple columns. I have looked at the examples and read/re-read the specs, but no joy. Any help is appreciated - I have seen several posts affirming that this feature is supported, so its obviously a "user error". Any help is appreciated.
BTW, unti this I have really been breezing along in FO/FOP doing my first database report (have been using FOP to convert SVG to PDF for a couple of years). Its great.
Anyway, below is my FO file. The problem is that my separator row, marked with "<!-- SEPARATOR ROW -->" ends up wrapped in the first narrow column (.5 inch) instead of spanning all six columns.
Again thanks in advance for any help - Richard
<!-- START OF FO FILE --> <?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<!-- defines the layout master --> <fo:layout-master-set> <fo:simple-page-master master-name="report1" page-height="8.5in" page-width="11in" margin-top=".5in" margin-bottom=".5in" margin-left=".5in" margin-right=".5in"> <fo:region-before extent=".5in"/> <fo:region-after extent=".5in"/> <fo:region-body margin-top=".5in" margin-bottom=".5in"/><!-- This leaves about 9in for text --> </fo:simple-page-master> </fo:layout-master-set>
<!-- starts actual layout -->
<fo:page-sequence master-reference="report1"> <fo:static-content flow-name="xsl-region-before"> <fo:block line-height="14pt" font-size="10pt" text-align="end">${report.headerLeft[0]}</fo:block> </fo:static-content> <fo:static-content flow-name="xsl-region-after"> <fo:block line-height="14pt" font-size="10pt" text-align="end">Page <fo:page-number/> </fo:block> </fo:static-content>
<fo:flow flow-name="xsl-region-body">
<!-- table start --> <fo:table table-layout="fixed" border-collapse="separate" border-left-color="black" border-left-width="0.5pt" border-left-style="solid" border-right-color="black" border-right-width="0.5pt" border-right-style="solid" border-top-color="black" border-top-width="0.5pt" border-top-style="solid" border-bottom-color="black" border-bottom-width="0.5pt" border-bottom-style="solid" > <fo:table-column column-width=".5in"/><!-- Learning Item Number --> <fo:table-column column-width="1in"/><!-- Total Responses --> <fo:table-column column-width="1in"/><!-- Total Correct --> <fo:table-column column-width="1in"/><!-- Total Correct Percent (of Total Responses) --> <fo:table-column column-width="1in"/><!-- Total Errors --> <fo:table-column column-width="1in"/><!-- Total Incorrect Percent (of Total Responses) --> <fo:table-header> <fo:table-row> <fo:table-cell ><fo:block text-align="right">Item Num</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">Responses</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">Correct</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">% Correct</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">Errors</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">% Errors</fo:block></fo:table-cell> </fo:table-row> </fo:table-header> <fo:table-body> <fo:table-row><!-- SEPARATOR ROW --> <fo:table-cell number-columns-spanned="6"><fo:block text-align="left">Group of Rows #1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell ><fo:block text-align="right">1</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">A</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">B</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">C</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">D</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">E</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell ><fo:block text-align="right">2</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">A</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">B</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">C</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">D</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">E</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell ><fo:block text-align="right">3</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">A</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">B</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">C</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">D</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">E</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell ><fo:block text-align="right">4</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">A</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">B</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">C</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">D</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">E</fo:block></fo:table-cell> </fo:table-row> <fo:table-row><!-- SEPARATOR ROW --> <fo:table-cell number-columns-spanned="6"><fo:block text-align="left">Group of Rows #2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell ><fo:block text-align="right">1</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">A</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">B</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">C</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">D</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">E</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell ><fo:block text-align="right">2</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">A</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">B</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">C</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">D</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">E</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell ><fo:block text-align="right">3</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">A</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">B</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">C</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">D</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">E</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell ><fo:block text-align="right">4</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">A</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">B</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">C</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">D</fo:block></fo:table-cell> <fo:table-cell ><fo:block text-align="right">E</fo:block></fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> <!-- table end -->
</fo:flow> </fo:page-sequence>
</fo:root> <!-- END OF FO FILE -->
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.6 - Release Date: 06/05/2005
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
