Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Centering the heading

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Centering the heading
 Login/Join
 
<tourettes>
posted
I'm having a problem centering the heading. For some reason, the heading centers not by the page, but by the columns of data.



Thanks in advance.
 
Report This Post
Gold member
posted Hide Post
The Heading function within the report I believe will always center according to the report. If you were looking at creating a heading for the webpage I would suggest using it within the -HTMLFORM section and coding it in HTML.

Something like..

-HTMLFORM BEGIN
<CENTER>
<h3>heading</h3>
</CENTER>
-HTMLFORM END
-* Then displaying your table
TABLE FILE CAR
...
..
END

Leo
 
Posts: 96 | Location: Winnipeg, Manitoba, Canada | Registered: January 22, 2004Report This Post
<tourettes>
posted
I should have specified that the reports are in PDF format....any ideas??
 
Report This Post
<JG>
posted
You need to use a spot marker. The number depends on the page orientation and the size of your heading

TABLE FILE CAR
HEADING
"<35 HELLO "
PRINT MODEL
BY CAR
ON TABLE PCHOLD FORMAT PDF
END
 
Report This Post
<Pietro De Santis>
posted
May I guess that you've articulated an issue with PDF reports that I also have a problem with?

If you have a PDF report that has very few, narrow columns, The HEADING CENTER centers the heading over the report columns, not the whole page. The PDF report, which is designed for printing, is aligned to the left of the physical page - there's no way to center the headings and the columns of the report with regards to the page size, other than using spot markers or positioning.

It would be nice to either center the body of the report automatically, or center the headings to the physical page.
 
Report This Post
<JG>
posted
WebFocus by default always centers the heading over the displayed columns, this is a built in feature. To force other behavior, for PDF you must use spot markers, or for HTML and Excel you must use colspan in the style sheet perhaps with the addition of dummy fields to pad the report width, or CSS.
 
Report This Post
Guru
posted Hide Post
Here is an old post you may want to check out:

Centering Variable Heading In PDF

Here is some code that should work for you:

TABLE FILE CAR
PRINT
RETAIL_COST
DEALER_COST
BY COUNTRY
BY CAR
HEADING
"HEADING1"
"HEADING2"
"HEADING3"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,PAGESIZE='LETTER',
LEFTMARGIN=0.25,RIGHTMARGIN=0.25,
TOPMARGIN=0.25,BOTTOMMARGIN=0.25,SQUEEZE=ON,
ORIENTATION=LANDSCAPE,$
TYPE=REPORT,FONT='ARIAL',SIZE=8,
COLOR='BLACK',BACKCOLOR='NONE',STYLE=NORMAL,
RIGHTGAP=0.00,$
TYPE=HEADING,LINE=1,JUSTIFY=CENTER,WIDTH=10.50,$
TYPE=HEADING,LINE=2,JUSTIFY=CENTER,WIDTH= 8.00,$
TYPE=HEADING,LINE=3,JUSTIFY=CENTER,$
ENDSTYLE
END

This message has been edited. Last edited by: Kerry,
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Centering the heading

Copyright © 1996-2020 Information Builders