<div dir="ltr">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 before you get started, including how many columns you need included.<br><br>XML might let you set column widths as a percentage of page/screen width, but I don't think that's directly transferable to FM. Can perl handle calculations?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 23, 2015 at 4:26 PM, Scott Prentice <span dir="ltr"><<a href="mailto:sp14@leximation.com" target="_blank">sp14@leximation.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#336666">
<div><font face="Verdana">Fei Min...<br>
<br>
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.).<br>
<br>
Would love to hear I'm wrong .. but hot holding my breath.<br>
<br>
...scott<br>
<br>
</font><div><div class="h5">
<pre cols="72"></pre>
On 2/23/15 9:16 AM, Fei Min Lorente wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div>
<p class="MsoNormal">Hi folks:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I found this discussion from 2008: <a href="https://forums.adobe.com/message/1279946#1279946" target="_blank">
https://forums.adobe.com/message/1279946#1279946</a>, and
this helpful answer from Russ Ward in 2010:
<a href="https://forums.adobe.com/thread/577820?tstart=0" target="_blank">https://forums.adobe.com/thread/577820?tstart=0</a>,
but I don’t see the solution that I’m looking for. My manager
(a software development guy) would like to create an XML file
that I can import into FrameMaker that doesn’t specify the
width of each column. He’s taking output from Jira, and people
can create tables in the Description field there, but he has
no way of knowing how wide the columns are. He figures that if
HTML can automatically size the columns to suit the contents,
surely FrameMaker can do this too (I’m not so sure). <u></u>
<u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’ve tried it myself, and the column widths
in the table template apply when you don’t specify widths in
XML. If you have more columns than are in your template, it
seems to use the width of the last templated column. And the
tables might contain graphics as well as text.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Anyone have any better ideas?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m using FrameMaker 10 on Windows 7. I
think my manager is using Perl or some other scripting
language. Jira outputs HTML as well as some other text format.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Fei Min Lorente<u></u><u></u></p>
<p class="MsoNormal">Senior Technical Communicator<u></u><u></u></p>
<p class="MsoNormal">Medical and Wireless Division<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><a href="mailto:feimin.lorente@onsemi.com" target="_blank"><span style="color:blue">feimin.lorente@onsemi.com</span></a></span><span><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">+1
<a href="tel:519-884-9696%20ext.%202297" value="+15198849696" target="_blank">519-884-9696 ext. 2297</a> | Waterloo office<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">+1
<a href="tel:519-831-4931" value="+15198314931" target="_blank">519-831-4931</a> | mobile</span><span><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">+1
<a href="tel:905-631-5724" value="+19056315724" target="_blank">905-631-5724</a> | fax</span><span><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><a href="http://www.onsemi.com/" target="_blank"><span style="color:blue">www.onsemi.com</span></a></span><span><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
You are currently subscribed to framers as <a href="mailto:sp14@leximation.com" target="_blank">sp14@leximation.com</a>.
Send list messages to <a href="mailto:framers@lists.frameusers.com" target="_blank">framers@lists.frameusers.com</a>.
To unsubscribe send a blank email to
<a href="mailto:framers-unsubscribe@lists.frameusers.com" target="_blank">framers-unsubscribe@lists.frameusers.com</a>
or visit <a href="http://lists.frameusers.com/mailman/options/framers/sp14%40leximation.com" target="_blank">http://lists.frameusers.com/mailman/options/framers/sp14%40leximation.com</a>
Send administrative questions to <a href="mailto:listadmin@frameusers.com" target="_blank">listadmin@frameusers.com</a>. Visit
<a href="http://www.frameusers.com/" target="_blank">http://www.frameusers.com/</a> for more resources and info.
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
<br>
<br>
You are currently subscribed to framers as <a href="mailto:ljsims.ML@gmail.com">ljsims.ML@gmail.com</a>.<br>
<br>
Send list messages to <a href="mailto:framers@lists.frameusers.com">framers@lists.frameusers.com</a>.<br>
<br>
To unsubscribe send a blank email to<br>
<a href="mailto:framers-unsubscribe@lists.frameusers.com">framers-unsubscribe@lists.frameusers.com</a><br>
or visit <a href="http://lists.frameusers.com/mailman/options/framers/ljsims.ml%40gmail.com" target="_blank">http://lists.frameusers.com/mailman/options/framers/ljsims.ml%40gmail.com</a><br>
<br>
Send administrative questions to <a href="mailto:listadmin@frameusers.com">listadmin@frameusers.com</a>. Visit<br>
<a href="http://www.frameusers.com/" target="_blank">http://www.frameusers.com/</a> for more resources and info.<br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Lin Sims</div>
</div>