Focal Point
PDF breakdown of header

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7491085891

November 28, 2006, 11:04 AM
Mark1
PDF 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!


Windows version 768
November 28, 2006, 11:23 AM
Pam Kratt
You 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#"


webfocus 8.105M; os: windows; pdf, html, exl2k, csv
November 28, 2006, 12:35 PM
mgrackin
Pam;

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.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
November 29, 2006, 10:46 AM
Mark1
Thank you Pam and mgrackin. That worked exactly like I needed. Thanks again!


Windows version 768