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] pdf report heading styling issue

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] pdf report heading styling issue
 Login/Join
 
Member
posted
i have a pdf report with 12 columns. The heading has 3 sections, 1st spanning first 2 columns, 2nd spanning next 8 columns and 3rd spanning last 2 columns.I have used spot markers and the POSITION attribute to place the headings.I need each heading with JUSTIFY=CENTER, however this property is not working.I also need a seperation between the headings, like a border. The border attribute is not working either. Has anybody faced similar issues and solved them?

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 7 | Registered: March 17, 2011Report This Post
Expert
posted Hide Post
Are you able to post an example with one of the sample files ?

What version are you on, your signature says 7.6, 7.6.what.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
I am working with version 7.6.9

To quote an example:

TABLE FILE X
PRINT
C1 C2 C3 .... C12
ON TABLE PCHOLD FORMAT PDF
HEADING
" H1 <+0> H2 <+0> H3"

ON TABLE SET STYLE *
TYPE=HEADING, LINE=1,ITEM=1, POSITION=C1, JUSTIFY=CENTER,$
TYPE=HEADING, LINE=1,ITEM=2, POSITION=C3, JUSTIFY=CENTER,$
TYPE=HEADING, LINE=1,ITEM=3, POSITION=C11, JUSTIFY=CENTER,$

Thats basically the framework of the code.
I need ITEM 1 to be center aligned above first 2 columns, ITEM 2 to be center aligned above next 8 and ITEM 3 above last 2 columns.
The BORDER attribute does not work for the ITEM's, so cant think of a way to bring about a visual seperation between the heading items.
The JUSTIFY=CENTER does not work in the intended fashion.
And also there is an empty line that appears between the heading and the title of the report, making it difficult for the viewer to associate the headings with the corresponding columns.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 7 | Registered: March 17, 2011Report This Post
Platinum Member
posted Hide Post
You can achieve this using Composer.
Or to get borders around the HEADING use the following stylesheet code
TYPE=REPORT, OBJECT=BOX, POSITION=(0.25 0.75), DIMENSION=(10.5 0.55), BACKCOLOR=SILVER,$

If you are migrating to 7.7 series, then it is quiet simple, as you can get borders in the heading,subhead etc..


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 2008Report This Post
Expert
posted Hide Post
By fixing the width of each column, the title positions will be known, then you can add the width of each item ion the heading.

Also, as Atturhari said, use OBJECT=BOX to add the rest of the borders.

e.g.
TABLE FILE CAR
 HEADING
 " H1 <+0> H2 <+0> H3"
 PRINT COUNTRY
       CAR
       MODEL
       BODYTYPE
 
 ON    TABLE PCHOLD FORMAT PDF
 
 ON    TABLE SET STYLE *
       SQUEEZE=OFF, $
       TYPE=TITLE  , BORDER=MEDIUM, $
       TYPE=REPORT , COLUMN=COUNTRY , SQUEEZE=1.0, $
       TYPE=REPORT , COLUMN=CAR     , SQUEEZE=1.5, $
       TYPE=REPORT , COLUMN=MODEL   , SQUEEZE=2.0, $
       TYPE=REPORT , COLUMN=BODYTYPE, SQUEEZE=1.5, $
-*       TYPE=HEADING, LINE=1,ITEM=1, WIDTH=3.0  , JUSTIFY=CENTER, BACKCOLOR=YELLOW, $
-*       TYPE=HEADING, LINE=1,ITEM=2, WIDTH=2.25 , JUSTIFY=CENTER, BACKCOLOR=SILVER, $
-*       TYPE=HEADING, LINE=1,ITEM=3, WIDTH=1.75 , JUSTIFY=CENTER, BACKCOLOR=CYAN, $
       TYPE=HEADING, LINE=1,ITEM=1, WIDTH=3.0  , JUSTIFY=CENTER, $
       TYPE=HEADING, LINE=1,ITEM=2, WIDTH=2.25 , JUSTIFY=CENTER, $
       TYPE=HEADING, LINE=1,ITEM=3, WIDTH=1.75 , JUSTIFY=CENTER, $
       TYPE=REPORT, OBJECT=BOX, POSITION=(0.25 0.67), DIMENSION=(3.00 0.63), $
       TYPE=REPORT, OBJECT=BOX, POSITION=(3.25 0.67), DIMENSION=(2.25 0.63), $
       TYPE=REPORT, OBJECT=BOX, POSITION=(5.50 0.67), DIMENSION=(1.75 0.63), $
       ENDSTYLE
END


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Buddies! That worked wonderfully. Thanks a lot.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 7 | Registered: March 17, 2011Report 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] pdf report heading styling issue

Copyright © 1996-2020 Information Builders