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.
WIDTH, WRAP and SQUEEZE are the correct commands to use. If you are using the HTML output format you need to add the following statement to your code:
ON TABLE SET HTMLCSS ON
If you are using the PDF output format, read the articles I wrote about PDF and HTML output report design at the following URL under the "Formatting Reports" section.
If I run the following code, this will demonstrate exactly what Sam is experiencing:
TABLE FILE CAR
BY COUNTRY
BY CAR
BY BODYTYPE
BY MODEL
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=ON,
FONT='TIMES NEW ROMAN',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=REPORT,
COLUMN=N3,
SQUEEZE=0.277778,
$
TYPE=REPORT,
COLUMN=N4,
WRAP=1.000000,
$
ENDSTYLE
END
The column BODYTYPE should be truncated at 0.3 inches. It is not. It just displays the entire data in the field. Most probably this is because there is no word-separator in the field on which to truncate or wrap. By the way: for html it does not matter if I specify Squeeze or Wrap, the outcome is the same.
Wrapping and/or squeezing works ok when output is pdf, also the specified column widths are respected with pdf. But not with html.....
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
The issue you are running into is because PDF and HTML are two very different animals. The rules are different for each output format.
PDF output is created completely by WebFOCUS and therefore WebFOCUS is able to truncate or wrap the data appropriately. As you see in the PDF output, it is possible to break words into smaller parts in order to wrap the text.
HTML output is created by WebFOCUS but it is rendered and displayed by the browser. Therefore the rules are diffecrent. There is no such thing as truncating in HTML. Further, the rules for wrapping text are different with HTML. I have never seen HTML break words into smaller parts in order to wrap the text.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003