FO.NET error in column % width

Sep 30, 2009 at 8:42 AM

Hello,

First thanks for working on this, it's a great component. My question is if percentage in columns is implemented.

I have this fo bits: <fo:table-column column-width="32%" column-number="1"/>

And I'm getting the following exception:

System.SystemException: Error in column-width property value '32%': No conversion defined
   at Fonet.FonetDriver.FireFonetError(String message)
   at Fonet.Fo.PropertyListBuilder.MakeList(String ns, String elementName, Attributes attributes, FObj parentFO)
   at Fonet.Fo.FOTreeBuilder.StartElement(String uri, String localName, Attributes attlist)
   at Fonet.Fo.FOTreeBuilder.Parse(XmlReader reader)

Thanks,

kiumo.

Sep 30, 2009 at 9:06 AM

I've checked with fixed values like "4cm" and I've also get the exception so is the 'coulumn-width' property the issue?

Oct 3, 2009 at 5:32 AM

Try something like this:

<fo:table table-layout="fixed" border-collapse="collapse" font-weight="normal" font-style="normal" width="100%" font-size="10.5pt">
   <fo:table-column column-width="proportional-column-width(50)"/>
   <fo:table-column column-width="proportional-column-width(13)"/>
   <fo:table-column column-width="proportional-column-width(15)"/>
   <fo:table-column column-width="proportional-column-width(22)"/>

Oct 5, 2009 at 3:18 PM

Thanks DecMac. This solution works fine.