November 28, 2006, 11:04 AM
Mark1PDF breakdown of header
I have two fields in my PDF header. The format of my header is like this
"CURRENT UNIT: UNIT# ROOM: ROOM#"
However, sometimes the unit is 4 characters and sometimes it is 3. This throws the position of the word "ROOM" off by one space. Is there a way to correct this so that no matter how long UNIT is, the word "ROOM" will always begin in the same position. Thanks!
November 28, 2006, 11:23 AM
Pam KrattYou just need to put positioning it it. This should work (you may need to change the 20 to a different number ... it will depend on your font that you use).
"CURRENT UNIT: UNIT# <20 ROOM: ROOM#"
November 28, 2006, 12:35 PM
mgrackinPam;
Try adding an ending caret > to your field name for UNIT#.
"CURRENT UNIT: <UNIT#> ROOM: <ROOM#"
The ending caret tells focus to retain trailing blanks. So if the field format for UNIT# is A4, the field will always take up 4 spaces even if the value of the field is 1, 2 or 3 characters long. When the ending caret is not there, focus will remove trailing blanks.
November 29, 2006, 10:46 AM
Mark1Thank you Pam and mgrackin. That worked exactly like I needed. Thanks again!