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     [SOLVED] Multiple alignments on same heading line

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Multiple alignments on same heading line
 Login/Join
 
Platinum Member
posted
I have a report that needs to have heading text in the same line in 3 positions:

Left Centered Info Right

That's the "easy" part. The tricky part is the word "Centered" needs to be in Navy and the word "Info" needs to be in green. The problem is keeping "Centered" and "Info" one space apart from each other. Here is the source code.


 
-* File HEADING.fex
TABLE FILE CAR
PRINT
     COUNTRY
     CAR
     MODEL
     SALES
HEADING
"Left<0>Center<+0>Info<+0>Right<+0> "
" "
ON TABLE NOTOTAL
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
$
TYPE=HEADING,
     HEADALIGN=INTERNAL,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     COLOR='RED',
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=2,
     COLOR='BLUE',
     JUSTIFY=CENTER,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=3,
     COLOR=RGB(51 153 102),
     JUSTIFY=LEFT,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=4,
     COLOR=RED,
     JUSTIFY=RIGHT,
$
ENDSTYLE
END
 


Thank you,

John

This message has been edited. Last edited by: JohnB,


WF 7.7.03, Windows 7, HTML, Excel, PDF
 
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006Report This Post
Expert
posted Hide Post
I think, if I understand you, that there's an easy solution:

1) Use "<0>Left<+1>Center<+1>Info<+1>Right<+0>" for your heading line.
2) Don't use "TYPE=HEADING, HEADALIGN=INTERNAL,$" in this partular case.
3) Use " TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=iterm number, 1-3, COLOR='pick a color, i.e.: NAVY',$"

I hope this helps. It works for me.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
<JJI>
posted
John,

What is the output format of your report?

This works for both HTML and EXL2K:
 
HEADING
"Left<0>Center Info<+0> <+0>Right<+0> " 

...
 $
TYPE=HEADING,
     HEADALIGN=BODY,
$ 



Unfortunately this will not work for PDF. I'll see what I can do to make this work also for PDF. I'll hope this works for you.

This message has been edited. Last edited by: <JJI>,
 
Report This Post
Expert
posted Hide Post
I assumed HTML as nothing was mentioned otherwise. However, if you want to PCHOLD FORMAT PDF, then use "Left<+0> Center<+0> Info<+0> Right<+0>" for your HEADING line. Note the spaces to the right of the <+0>'s.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
The user has the choice of HTML, PDF, and Excel. I was looking for the HTML solution initially.

Thank you,

John

This message has been edited. Last edited by: JohnB,


WF 7.7.03, Windows 7, HTML, Excel, PDF
 
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006Report 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     [SOLVED] Multiple alignments on same heading line

Copyright © 1996-2020 Information Builders