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     Center a variable heading in PDF

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Center a variable heading in PDF
 Login/Join
 
Member
posted
I have a self serv app with several reports in PDF format.

I am trying to center Heading in Line 3 and 4 to the middle part of the Line 1 and 2. I have tried several options in the style sheet, but was unable to accomplish this.

I need help from the gurus. Thank you. Confused

HEADING
"<1 &DATE <38 XYZ Group of North America <81 QC:&REPNO"
"<1 Produced By:SMG Group <45 Order Status Report <75 Source:XZ1307,PPD256"
"&FTYPE_HDG"
"&JTYPE_HDG"

Confused
 
Posts: 20 | Location: Michigan | Registered: November 23, 2004Report This Post
Guru
posted Hide Post
This code could help you:

-SET &LINE3 = 'Line 3';
-SET &LINE4 = 'Line 4';
-SET &REPNO = '5';
TABLE FILE CARPRINT
     RETAIL_COST
     DEALER_COSTBY
     COUNTRYBY
     CAR
HEADING
"<1 &DATE <38 XYZ Group of North America <81 QC:&REPNO"
"<1 Produced By:SMG Group <45 Order Status Report <75 Source:XZ1307,PPD256"
"&LINE3"
"&LINE4"
ON TABLE PCHOLD FORMAT PDFON 
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=3,JUSTIFY=CENTER,WIDTH=10.00,$
TYPE=HEADING,LINE=4,JUSTIFY=CENTER,WIDTH=10.00,$
ENDSTYLE
END



If you know how much space heading 1 and 2 will take on the page you can adjust the width to fit.

This message has been edited. Last edited by: Kerry,
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
<Sugiyama>
posted
Please test the following requests.


HEADING CENTER
"<1 &DATE <38 XYZ Group of North America <81 QC:&REPNO"
"<1 Produced By:SMG Group <45 Order Status Report <75 Source:XZ1307,PPD256"
"&FTYPE_HDG"
"&JTYPE_HDG"


Good luck
 
Report This Post
<Pietro De Santis>
posted
You don't need the WIDTH parm, JUSTIFY=CENTER will suffice.

TYPE=HEADING, LINE=3, JUSTIFY=CENTER, $
 
Report This Post
Member
posted Hide Post
Thank you guys. It was resolved by dividing heading into items <+0> and adjusting the WIDTH in the stylesheet. The report has 12 columns.

HEADING
"&DATE <+0> XYZ Group of North America <+0> QC:&REPNO"
"Produced By:SMG Group <+0> Order Status Report <0+> Source:XZ1307,PPD256"
"&FTYPE_HDG"
"&JTYPE_HDG"

TYPE=HEADING,LINE=1,WIDTH=1, OBJECT=TEXT,ITEM=1,JUSTIFY=LEFT,$
TYPE=HEADING,LINE=1,WIDTH=10,OBJECT=TEXT,ITEM=2,JUSTIFY=CENTER,$
TYPE=HEADING,LINE=1,WIDTH=1, OBJECT=TEXT,ITEM=3,JUSTIFY=RIGHT,$

TYPE=HEADING,LINE=2,WIDTH=2,OBJECT=TEXT,ITEM=1,JUSTIFY=LEFT,$
TYPE=HEADING,LINE=2,WIDTH=8,OBJECT=TEXT,ITEM=2,JUSTIFY=CENTER,$
TYPE=HEADING,LINE=2,WIDTH=2,OBJECT=TEXT,ITEM=3,JUSTIFY=RIGHT,$

TYPE=HEADING,LINE=3,WIDTH=12,JUSTIFY=CENTER,$
TYPE=HEADING,LINE=4,WIDTH=12,JUSTIFY=CENTER,$
Smiler
 
Posts: 20 | Location: Michigan | Registered: November 23, 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     Center a variable heading in PDF

Copyright © 1996-2020 Information Builders