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.
The code below prints a paragraph of underlined text. However, in the last sentence, the underlining continues from the end of the sentence to the right margin. How can I get the underlining to halt at the end of the last sentence? I wish to continue to use the text variable.
DEFINE FILE EMPLOYEE
SENTENCE1/A1000='The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The grass is green. The grass is green. The grass is green. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. ';
END
TABLE FILE EMPLOYEE
BY LAST_NAME NOPRINT
ON TABLE SUBFOOT
"<SENTENCE1"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=10,
JUSTIFY=LEFT,
$
TYPE=TABFOOTING,
LINE=1,
WRAP=6.5,
STYLE=UNDERLINE,
$
ENDSTYLE
END
I tried it and it did not work. But it sounds as though this suggestion will alter the width of my paragraph which is not what I want to do. I want to be able to suppress trailing underlines without regard to wrap size. Actually this issue appears to occur on every line line, not just the last line.
Is the sentence always the same? Make it a Footing.
DEFINE FILE EMPLOYEE
SENTENCE1/A1000='The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The grass is green. The grass is green. The grass is green. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. ';
END
TABLE FILE EMPLOYEE
BY LAST_NAME NOPRINT
ON TABLE FOOTING
"The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The car is red."
"The car is red. The car is red. The car is red. The car is red. The car is red. The car is red. The grass is"
"green. The grass is green. The grass is green. The bird is blue. The bird is blue. The bird is blue. The bird"
"is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is"
"blue. The bird is blue. The bird is blue. The bird is blue."
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=10,
JUSTIFY=LEFT,
$
TYPE=FOOTING,
STYLE=UNDERLINE,
$
ENDSTYLE
END
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005
You're right. Making it a Footing resolves the issue.
Since the text could change for various reasons, I prefer to keep the text in a text variable such as SENTENCE1, but I may have no choice but to make it a Footing.
DEFINE FILE EMPLOYEE
SENTENCE1/A1000 = 'The car is red. The car is red. The car is red. The car is red. The car is red. '
| 'The car is red. The car is red. The car is red. The car is red. The car is red. '
| 'The car is red. The car is red. The car is red. '
| 'The grass is green. The grass is green. The grass is green. '
| 'The bird is blue. The bird is blue. The bird is blue. The bird is blue. '
| 'The bird is blue. The bird is blue. The bird is blue. The bird is blue. '
| 'The bird is blue. The bird is blue. The bird is blue. The bird is blue. The bird is blue. ';
END
TABLE FILE EMPLOYEE
PRINT SENTENCE1 AS ''
BY HIGHEST 1 LAST_NAME NOPRINT
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
FONT='ARIAL',
SIZE=10,
JUSTIFY=LEFT,
GRID=OFF,
$
TYPE=REPORT,
COLUMN=SENTENCE1,
WIDTH=7.5, WRAP=7.5,
STYLE=UNDERLINE,
$
ENDSTYLE
END
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Good work. Its look exactly the way I want it, except my text variable will be in a SUBFOOT. I tried unsuccessfully to translate your solution to my example. But will try again later. My example is part of a much larger collection of code and I would like to avoid rearranging it just to remove the trailing underline. but maybe your solution is the only one. Any final thoughts?