Jump to content

Recommended Posts

Posted

Hello,

 

I'm doing a project that needs to have tables flow from one page to another. I'm coding the tables within a rule using the data dynamically from the data file. Here is my code

var strVal = "";
strVal += '<table columns = 3 alignment = "left" HeaderShading="Black,10" Margins="top:70;bottom:10"';
strVal += 'BoxRules="top:medium,Black;bottom:thin,Black" cell rules="top:thin,Black;bottom:thin,Black">';
strVal += '<column width = 23200>';
strVal += '<column width = 7200>';
strVal += '<column width = 19800>';
strVal += '<row type = "header"><cell><f Name="Minion Pro Bold">Executive Programs<f Name="Minion Pro"><cell><cell>';
if (ToUpper(Trim(Field("EAF"))) == "Y")  {
   strVal += '<row><cell>Executive Auto Program<cell><cell>Maximum up to $20,000 per year';
}
if (StringToNumber(Trim(Field("EPCE"))) > 0)  {
   strVal += '<row><cell>Executive Physical<cell><cell>$' + Field("EPCE") + ' value per year';
}
if (StringToNumber(Trim(Field("EFCE"))) > 0)  {
   strVal += '<row><cell>Executive Financial Planning<cell><cell>$' + Field("EFCE") + ' value per year';
}
if (StringToNumber(Trim(Field("ELB"))) > 0)  {
   strVal += '<row><cell>Executive Life Insurance<cell>Volume:<cell>$' + Field("ELB") + ' (3 x annual base pay)';
}
if (StringToNumber(Trim(Field("ELTDB"))) > 0)  {
   strVal += '<row><cell>Executive Long-Term Disability<cell>Volume:<cell>$' + Field("ELTDB") +' per month';
}
strVal += '<row><cell>Air Travel Lounge<cell><cell>Maximum $500 annually';
strVal += '</table><p>';
return strVal;

I've coded the Margins to default at 70 (top) and 10 (bottom) within the main table definition section. These settings give me enough of a margin and the top and bottom to make the type appear to be nearly centered within the table row. I've attached a sample of the output that is created when a table flows from one page to the next. Notice that the margins are correct at the top and then they seem to be dropped when the same table flows to page two. All the conditions are working correctly and the header is repeated as it should be on the second page, however all the type is now touching the bottom line. I've even tried to code the margins within each cell definition, but I get the same results.

 

I'm not using an OverFlow page for this but just linking the two text boxes together with the "Connect TextFrame" link button on the toolbar.

 

Is this a bug, or have I missed something?

.

Posted
It's hard to tell what's going on without seeing the job. You might want to check (or uncheck) the "Use legacy line leading" box on the Global Paragraph Settings dialog and see if that makes a difference.
  • 1 year later...
Posted
I just figured this one out... the margin settings are reversed. You want margin at the Top? Set it in bottom. You want margins at the Left? Set it in right. Go figure.
  • 3 years later...
Posted
The reversal of Left and Right margins appears to be true in the Table Object too. WTF!

This is fixed in FusionPro 9.3, although there's a compatibility mode so that older jobs compose the same "wrong" way. This is controlled by the Leading Mode on the Paragraph Globals dialog. If you select "FusionPro 9.3", that will make the left and right margins work properly (un-reversed), and will also fix up some other table leading issues. "FusionPro 3.1" is the older leading that you used to get if you didn't have Legacy Leading checked, and "Legacy" leading is what it's always been.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...