Re: Automatic column widths on import of XML file

2015-02-24 Thread Heiko Haida
Good point, Scott, thank you. I haven't seen this before, sorry... The syntax in the XML file would be like this: a) numeric example Colspec colnum = 1 colname = 1 colwidth = 0.543in/ Colspec colnum = 2 colname = 2 colwidth = 3.984in/ b) proportional example Colspec colnum = 1 colname

Re: Automatic column widths on import of XML file

2015-02-24 Thread Fei Min Lorente
Thanks everyone who responded to this question. The conclusion is that we can't expect FrameMaker to automatically size the column widths depending on the cells' contents. The next best solution seems to be a post-processing script. Maybe a preprocessing script is feasible, but since XML is

Re: Automatic column widths on import of XML file

2015-02-24 Thread Scott Prentice
Fei Min... Column widths can be percentages using the NN* format, if your r/w rules file includes this rule .. writer use proportional widths; Cheers, ...scott On 2/24/15 10:41 AM, Fei Min Lorente wrote: Thanks everyone who responded to this question. The conclusion is that we can’t

Re: Automatic column widths on import of XML file

2015-02-24 Thread Scott Prentice
Hi Tino... Yes .. that's exactly how it would work. Nice examples. ...scott On 2/24/15 12:42 PM, Heiko Haida wrote: Good point, Scott, thank you. I haven't seen this before, sorry... The syntax in the XML file would be like this: a) numeric example Colspec colnum = 1 colname = 1 colwidth

Re: Automatic column widths on import of XML file

2015-02-23 Thread Scott Prentice
Fei Min... FM won't auto-adjust table columns in any useful way. The only way I know of is to write a script or plugin to analyze the contents of the cells and do the width adjustment based on some predefined logic (widest graphic, or amount of text, etc.). Would love to hear I'm wrong ..

Re: Automatic column widths on import of XML file

2015-02-23 Thread Lin Sims
We've an internal perl script that sets up tables at a predefined table width with the columns at predefined widths, but I'm pretty sure those measurements are hard-coded into the script that creates the XML file from the Excel spreadsheet. It's doable if you know what sizes you're working with

Re: Automatic column widths on import of XML file

2015-02-23 Thread Heiko Haida
Hi, last time I had a closer look I found that FrameMaker would only support the CALS table model with fixed numeric column widths, not with percentages. Although it may be possible to set the widths via scripting, the result will probably not be satisfying at the first attempt. (...

Automatic column widths on import of XML file

2015-02-23 Thread Fei Min Lorente
Hi folks: I found this discussion from 2008: https://forums.adobe.com/message/1279946#1279946, and this helpful answer from Russ Ward in 2010: https://forums.adobe.com/thread/577820?tstart=0, but I don't see the solution that I'm looking for. My manager (a software development guy) would like