Jump to content

line up decimals in a table


Recommended Posts

I am trying to line up 4 variable fields' decimal in a column that is left justified.


I am using text measure to figure out the length of the longest of the 4 fields, subtract the length of each field from the longest length, and make the difference into a tab.

var tb_fld_1 = '<p br="false" findent="'+(lg - tm_fld_1.textWidth)+'">'
table.Rows[1].Cells[1].Content = (tb_fld_1+Field("S_BSC_COVG_AMT"));


Getting closer but not there. Any Ideas of why the measurement is coming up short?


Template is attached

decimal issue_Schedule Benefits - table.zip

Edited by Paul
Link to comment
Share on other sites

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.

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...