Focal Point
PDF output overflows

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

May 02, 2005, 03:32 PM
<Ed>
PDF output overflows
All,

I have a PDF report, in which one of the rows that is being shown is a big text field.

When I try to insert that field in the report... it works in HTML whereas in PDF, it only shows till the end of the line and cuts the remaining part.

Rather, it should go to the next line...to display the remaining part of that field.

So, for eg:

if this is the line:
HE DIDN'T MAKE IT HERE FOR TWO DAYS AND THEN WHEN HE DID SHOW UP IT WAS 15 MINUTES BEFORE WE WERE READY TO CLOSE. HE WAS AWARE OF OUR HOURS

it only shows...a part of that line....that fits in one line.

the output in pdf is:
HE DIDN'T MAKE IT HERE FOR TWO DAYS AND THEN WHEN HE DID SHOW UP IT WAS 15 MINUTES BEFORE WE WERE READY TO CLO
-------------

thanks

how can i wrap the line...so that the remaining part is displayed on the next line?

-Ed.
May 02, 2005, 03:45 PM
Francis Mariani
Use WRAP=n as in the example below:

TABLE FILE CAR
PRINT COUNTRY
COMPUTE TEST_TEXT/A200 = 'HE DIDN'T MAKE IT HERE FOR TWO DAYS AND THEN WHEN HE DID SHOW UP IT WAS 15 MINUTES BEFORE WE WERE READY TO CLOSE. HE WAS AWARE OF OUR HOURS';
WHERE READLIMIT EQ 100
WHERE RECORDLIMIT EQ 100
HEADING
" "
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF,
FONT='ARIAL', SIZE=8, $
TYPE=REPORT, COLUMN=TEST_TEXT, COLOR=BLUE, WRAP=5, $
ENDSTYLE
END
May 02, 2005, 04:53 PM
mgrackin
I assume when you say "big text field" you mean a field format of Annn and not TXnn. There is a STYLESHEET option of WRAP which will cause a field to be wrapped the way you want. I cannot find the syntax offhand but check the manual for WRAP.
May 02, 2005, 05:29 PM
<Ed>
what does the value next to the wrap indicate.
how is wrap=5 different from wrap=8?

Also, I am using Annn but just out of curiosity... will it matter if I use TXnnn

thanks

Ed.
May 02, 2005, 05:38 PM
Francis Mariani
WRAP=n where n is a specific numeric value that the column width can be set to, based on the TYPE=REPORT,UNITS=INCHES/CM/PTS where INCHES is the default.
May 02, 2005, 06:50 PM
mgrackin
You can use Annn or TXnn but they will act differently.

Annn puts ALL the contents in one "cell". For example, if you have a value that is 350 characters long, the entire contents goes in one cell.

If the format is TX50, for example, then WebFOCUS will break the text string into 50 character chunks and put each part in a seperate cell, one above the other, in the same column.

If WRAP is applied for restrict to 1.5 inches, for example, to force less than 50 characters on a single line, Annn will wrap the text within the same cell and will look nice. This is more of what you are looking for. However, since TXnn splits the value into seperate cells, each cell will be wrapped individually and will look odd.

This is the nature of the TXnn format. Annn format became available in later releases of FOCUS/WebFOCUS. TXnn is the "old" way of handling long characters strings.
May 04, 2005, 01:09 PM
<Ed>
All,

thanks for your replies.
WRAP is working in this case...however, wrap brings in a linebreak along with it. So, if the line that is wrapped has no data...then instead of 1 blank line we get 2 blank lines.

I know, making GRID=ON can remove that extra line.

is there any other way to do so?

thanks

Ed.