As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
How can I WRAP heading in PDF. See the following example.
TABLE FILE CAR PRINT CAR DEALER_COST RETAIL_COST SALES HEADING "THIS IS A LONG TEXT WHICH HAS TO WRAPPED TO TWO OR MORE LINES. CURRENTLY IT IS NOT DISPLAYED PROPERLY DUE TO THE LENGTH OF THE TEXT" "" ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * TYPE=HEADING, SIZE=12, STYLE=BOLD, LINE=1, WRAP=3, $ ENDSTYLE END
Thanks for your help!This message has been edited. Last edited by: Kerry,
Regards, Cyril Joy.
WF Production 8008 on Linux.
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004
It is a heading text passed as a variable to my report. I tried WRAP/SQUEEZE etc, but none working with PDF. Not sure where I am going wrong.This message has been edited. Last edited by: Cyril Joy,
Regards, Cyril Joy.
WF Production 8008 on Linux.
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004
Create a field containing the &variable value and then use the field in your HEADING. Fields will respect the WRAP setting. Straight text in a HEADING will not.
I wrote an article that expalins many of the ways to deal with text and fields in HEADINGs, SUBHEADings, etc. You may find this useful. The information about the field values in a HEADING is further down in the article.
TABLE FILE CAR PRINT CAR DEALER_COST RETAIL_COST SALES COMPUTE HDRTEXT/A150='THIS IS A LONG TEXT WHICH HAS TO WRAPPED TO TWO OR MORE LINES. CURRENTLY IT IS NOT DISPLAYED PROPERLY DUE TO THE LENGTH OF THE TEXT'; NOPRINT HEADING "<HDRTEXT" "" ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * TYPE=HEADING, SIZE=12, STYLE=BOLD, LINE=1, WRAP=3, $ ENDSTYLE END
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
After playing with this a little, I found it interesting that wrapping a field within a text line works in HEADING, SUBHEAD, SUBFOOT, TABHEADING, AND TABFOOTING, but it does not work correctly (at least in PDF) in FOOTING. It seems to truncate the field after one line at the specified length - as if it doesn't know if there will be enough room for the additional lines of wrapped field value, so it doesn't bother to display them. Can you verify this when you get a minute, Mickey?
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
You are correct. I am using WF713 and the FOOTING does not show anymore than one line of text. Have you reported this to IBI to see if it is fixed in later releases than what we are using? (me-WF713, you-WF716)
I found a WRAPping issue with fields in HEADINGs in WF713 that IBI says is fixed in WF716. Maybe further fixes are in WF76x.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
FYI.. This issue still isn't fixed in 7.7.1. Which is what led me to this post...
WebFOCUS Server 8.1.05 Windows 2008 Server WebFOCUS AppStudio 8.1.05 Windows 7 Professional IE 11 and Chrome Version 43.0.2357.124 m. Mostly HTML, PDF, Excel, and AHTML
Create a field containing the &variable value and then use the field in your HEADING. Fields will respect the WRAP setting. Straight text in a HEADING will not.
I wrote an article that expalins many of the ways to deal with text and fields in HEADINGs, SUBHEADings, etc. You may find this useful. The information about the field values in a HEADING is further down in the article.
I read the articles but I am still having a problem getting an amper variable to center in a heading, it trails off the right side of the page and will not wrap. I have tried to assign the &var to a define field and use that in the heading and it doesn't work. Any other ideas??
WebFOCUS Server 8.1.05 Windows 2008 Server WebFOCUS AppStudio 8.1.05 Windows 7 Professional IE 11 and Chrome Version 43.0.2357.124 m. Mostly HTML, PDF, Excel, and AHTML
I have read this great article and tried the things that are in it. I still need help along these lines: I have a very long (A8000V) field that I want to wrap in PDF at the subfoot level. In the article the heading works great for wrpping - not so with the subfoot (or footing). It works in HTML format - but not in PDF. Can anyone PLEASE help me? THANKS!! Marilyn version 7.6.11
I tried this on v7.7.03 and as you say, wrap with a long footing does not work. It works for tabheading, tabfooting, heading, subhead and subfoot, but not for footing. I would open a case with IBI. You can use this reproducible code as an example:
-SET &FOOT_TEXT = 'At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, *** soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.';
TABLE FILE CAR
SUM
COMPUTE FOOT_TEXT/A1200 = '&FOOT_TEXT'; NOPRINT
SALES
BY COUNTRY
BY CAR
BY MODEL
ON COUNTRY SUBHEAD
"<FOOT_TEXT"
" "
ON COUNTRY SUBFOOT
" "
"<FOOT_TEXT"
HEADING
"<FOOT_TEXT"
" "
FOOTING
" "
"<FOOT_TEXT"
ON TABLE SUBHEAD
"<FOOT_TEXT"
" "
ON TABLE SUBFOOT
" "
"<FOOT_TEXT"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT, ORIENTATION=LANDSCAPE, $
TYPE=REPORT, FONT=ARIAL, SIZE=10, $
TYPE=TABHEADING, SIZE=8, WRAP=10, COLOR=PURPLE, $
TYPE=TABFOOTING, SIZE=8, WRAP=10, COLOR=BROWN, $
TYPE=HEADING, SIZE=8, WRAP=10, COLOR=RED, $
TYPE=FOOTING, SIZE=8, WRAP=10, COLOR=BLUE, $
TYPE=SUBHEAD, SIZE=8, WRAP=10, COLOR=GREEN, $
TYPE=SUBFOOT, SIZE=8, WRAP=10, COLOR=ORANGE, $
END
-RUN
If it's acceptable to have the text on only the last page, use ON TABLE SUBFOOT to create a tabfooting.This message has been edited. Last edited by: Francis Mariani,
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server