Focal Point
PDF and Wrap

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

June 02, 2004, 09:04 PM
pruittlr
PDF and Wrap
I'm running 5.21 WebFOCUS on Windows 2000. Does anyone know why the page number would not be printed when using PDF and WRAP?

This sample code will not display the actual page number. If I remove the WRAP, it will.
TABLE FILE CAR
PRINT MODEL
BY MODEL NOPRINT
ON TABLE PCHOLD FORMAT PDF
FOOTING BOTTOM
"Page ON TABLE SET STYLE *
TYPE=REPORT, FONT='TIMES NEW ROMAN', SIZE=10, COLOR=BLACK, BACKCOLOR=NONE,
STYLE=NORMAL, WRAP=8, $
ENDSTYLE
END

Any ideas are appreciated.

Thanks.
June 03, 2004, 10:49 PM
Mikel
It seems that WRAP is affecting FOOTING, adjusting each item of footing to each column.
If you don't want remote WRAP, there are two litle tricks to solve this issue:

Problem:

TABLE FILE CAR
PRINT
CAR
BY COUNTRY
FOOTING BOTTOM
"PAGE ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=INCHES, $
TYPE=REPORT, WRAP=3, $
END

Trick 1 - Define FOOTING style with specific WRAP:
TABLE FILE CAR
PRINT
CAR
BY COUNTRY
FOOTING BOTTOM
"PAGE ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=INCHES, $
TYPE=REPORT, WRAP=3, $
TYPE=FOOTING, WRAP=.5, $
END

Trick 2 - Define a unique page string using COMPUTE (=only 1 FOOTING item):

TABLE FILE CAR
PRINT
CAR
COMPUTE PAGESTR/A16 = 'PAGE: ' | FTOA(TABPAGENO, '(F5)', 'A5') ; NOPRINT
BY COUNTRY
FOOTING BOTTOM
" ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=INCHES, $
TYPE=REPORT, WRAP=3, $
END

Regards,
Mikel

This message has been edited. Last edited by: <Mabel>,
June 04, 2004, 02:58 PM
pruittlr
Mikel, thanks. I used option 1 that you gave me and it worked. Learn something new every day.

Thanks again.
Raelene