|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
tables in FO( Formatting Object)
Hi all
I want to write an .fo (formatting objects) file which displays table and want to convert it into .pdf using FOP. Now I have code for table (table.fo): ---------------------------------------------------------------------------------- <fo:table-and-caption text-align="center" start-indent="100pt"> <fo:table-caption start-indent="0pt" text-align="start"> <fo:block>Caption for this table </fo:block> </fo:table-caption> <fo:table width="325pt" table-layout="fixed"> <fo:table-column column-width="100pt" column-number="1"> </fo:table-column> <fo:table-column column-width="150pt" column-number="2"> </fo:table-column> <fo:table-column column-width="75pt" column-number="3"> </fo:table-column> <fo:table-body start-indent="0pt" text-align="start"> <fo:table-row> <fo:table-cell> <fo:block>Cell 1 </fo:block> </fo:table-cell> <fo:table-cell> <fo:block>Cell 2 </fo:block> </fo:table-cell> <fo:table-cell> <fo:block>Cell 3 </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:table-and-caption> --------------------------------------------------------------------------------- and if I use FOP for generating table.pdf it is giving error: C:\software\fop\fop-0.20.5rc3a>fop ex/table21.fo ex/table21.pdf [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] FOP 0.20.5rc3a [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [Fatal Error] table21.fo:2:64: The prefix "fo" for element "fo:table-and-caption " is not bound. [ERROR] The prefix "fo" for element "fo:table-and-caption" is not bound. What shall I have in table.fo file to generate proper pdf file??? Any help is appreciated. Thanks and Regards Srinivas |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > tables in FO( Formatting Object) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|