I'm working on an allergy IgE lab slip and the associated form has 130 check boxes in it. The problem I'm having is I want to line up the corresponding text from the check boxes horizontally. I have each observation term with 2 tabs after each to space them out a little, but once it hits the end of the line, it does a hard return and everything is off (see screenshot). Not quite sure how to ensure all of them align in 4 columns...any thoughts?
All I can think of is to set it up in a table in Word and then save it as an RTF file and then open the file in Wordpad and copy and paste into a Handout template from there. Or straight from Word if you have access to Word 2003. And no guarantees it will work....
Good luck!
DavidShower said:
All I can think of is to set it up in a table in Word and then save it as an RTF file and then open the file in Wordpad and copy and paste into a Handout template from there. Or straight from Word if you have access to Word 2003. And no guarantees it will work....
Good luck!
That definitely would work, but it'd look like a checker board 🙂 Say they pick the first and last option, there'd be 128 blank spaces between the 2 instead of sucking them up next to each other...
I would try a function that pads each column to 20 chars. You're not getting a hard return at the end of the line. It's just wrapping.
Left justified:
{fn Pad(value, spaces)
{
local x = spaces - SIZE(value)
local y = value
local count
for count = 1, count<=x , count = count + 1 do
y = y + " "
endfor
return y
}
}
Right justified:
{fn PadLeft(value, spaces)
{
local x = spaces - SIZE(value)
local y = value
local count
for count = 1, count<=x , count = count + 1 do
y = " " + y
endfor
return y
}
}
jjordet said:
I would try a function that pads each column to 20 chars. You're not getting a hard return at the end of the line. It's just wrapping.
Left justified:
{fn Pad(value, spaces)
{
local x = spaces - SIZE(value)
local y = value
local countfor count = 1, count<=x , count = count + 1 do
y = y + " "
endfor
return y
}
}Right justified:
{fn PadLeft(value, spaces)
{
local x = spaces - SIZE(value)
local y = value
local countfor count = 1, count<=x , count = count + 1 do
y = " " + y
endfor
return y
}
}
This is pretty much Greek to me. I assume I need to change "value" and "spaces" to a number? I tried just copying / pasting the code into a handout but it doesn't do anything, just displays the code.
Pad(DOCUMENT.checkbox1, 20) + Pad(DOCUMENT.checkbox2, 20) + Pad(DOCUMENT.checkbox3, 20) + Pad(DOCUMENT.checkbox4, 20) + etc.
Padding will still end up unaligned if you have a bad mix of upper and lower case values. The only for sure way to keep everything lined up is use a table and disperse the values into each cell; however, you cannot create tables dynamically, they will have to be hard coded into the handout.
These scenarios make me want access to programming language like PHP/javascript so that we can actually produce good looking handouts/letters dynamically within Centricity.
padding will work if you change the font to courier.
jjordet said:
padding will work if you change the font to courier.
Padding doesn't work period lol. I have everything as you've shown and all that displays is
Pad(DOCUMENT.ALMONDF20, 20) + Pad(DOCUMENT.CHESTNUTSWEETF299, 20) + Pad(DOCUMENT.MALTF90, 20) + Pad(DOCUMENT.PINENUTRF263, 20)
{fn Pad(value, spaces)
{
local x = spaces – SIZE(value)
local y = value
local count
for count = 1, count<=x , count = count + 1 do
y = y + " "
endfor
return y
}
}{Pad(DOCUMENT.ALMONDF20, 20) + Pad(DOCUMENT.CHESTNUTSWEETF299, 20) + Pad(DOCUMENT.MALTF90, 20) + Pad(DOCUMENT.PINENUTRF263, 20)}