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     Precision Reporting Tool - Centered Justification

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Precision Reporting Tool - Centered Justification
 Login/Join
 
Member
posted
I am very experienced with WebFOCUS and Dev Studio but am pretty new to the Precision Reporting Tool. I have made a simple example from the EMPDATA table.

What I would like to do in the example is center the TEST1 in the heading [I've colored it yellow) and TEST2 in the footing [I colored this yellow too). No matter what I've tried, it stays left justified. I need it centered. Has anyone done this before? Thanks for your help.

For some reason I had to replace the left carats with "left carat:" so if you want to run this you will need to make them a <

TABLE FILE EMPDATA
PRINT
EMPDATA.EMPDATA.PIN
EMPDATA.EMPDATA.LASTNAME
EMPDATA.EMPDATA.FIRSTNAME
EMPDATA.EMPDATA.MIDINITIAL
EMPDATA.EMPDATA.DIV
EMPDATA.EMPDATA.DEPT
COMPUTE TEST1/A50 = 'Some Co I Ltd'; NOPRINT
COMPUTE TEST2/A50 = 'Some Co I Ltd Monthly Report'; NOPRINT
COMPUTE TEST3/A50 = 'Detail of Assets Report'; NOPRINT
ON TABLE SUBHEAD
""
HEADING
"left carat:TEST1"
FOOTING
"Corporate Trust Services"
"www.someplace.com/cdo"
"left carat:TEST2"
"Page"
"left carat:TABPAGENO"
"of"
"left carat:TABLASTPAGE"
"left carat:TEST3"
ON TABLE SUBFOOT
""
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET NEWLAYOUT ON
ON TABLE SET COMPOSITION DEFAULT
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
TYPE=REPORT,
FONT='TIMES NEW ROMAN',
SIZE=9,
NAME=Page,
METADATA='>GUIDE>show=1,snap=0,GRID>show=1,snap=1,sizex=12,sizey=12,RULER>show=0,$
TYPE=TABHEADING,
NAME=Report Heading,
$
TYPE=TABFOOTING,
NAME=Report Footing,
$
TYPE=HEADING,
NAME=Heading,
$
TYPE=HEADING,
LINE=1,
BACKCOLOR='YELLOW',
POSITION=(0.125000 1.250000),
WRAP=ON,
DIMENSION=(7.000000 0.125000),
NAME=TEXT,
PARENT=Heading,
METADATA='anchor=1,parentanchor=1,flags=1,line=1,item=0',
$
TYPE=FOOTING,
NAME=Footing,
$
TYPE=FOOTING,
LINE=1,
POSITION=(0.000000 10.625000),
WRAP=ON,
DIMENSION=(2.375000 0.125000),
NAME=TEXT1,
PARENT=Footing,
METADATA='anchor=0,parentanchor=0,flags=9,line=1,item=0',
$
TYPE=FOOTING,
LINE=2,
POSITION=(0.000000 10.750000),
DIMENSION=(1.875000 0.125000),
NAME=TEXT2,
PARENT=Footing,
METADATA='anchor=0,parentanchor=0,flags=1,line=2,item=0',
$
TYPE=FOOTING,
LINE=3,
BACKCOLOR='YELLOW',
POSITION=(2.125000 10.625000),
DIMENSION=(5.125000 0.125000),
NAME=TEXT3,
PARENT=Footing,
METADATA='anchor=8,parentanchor=8,flags=1,line=3,item=0',
JUSTIFY=CENTER,
$
TYPE=FOOTING,
LINE=4,
POSITION=(7.375000 10.625000),
DIMENSION=(0.375000 0.305556),
NAME=TEXT4,
PARENT=Footing,
METADATA='anchor=0,parentanchor=0,flags=1,line=4,item=0',
$
TYPE=FOOTING,
LINE=5,
POSITION=(7.750000 10.625000),
DIMENSION=(0.875000 0.250000),
NAME=TEXT6,
PARENT=Footing,
METADATA='anchor=0,parentanchor=0,flags=1,line=5,item=0',
$
TYPE=FOOTING,
LINE=6,
POSITION=(7.875000 10.625000),
DIMENSION=(0.305556 0.250000),
NAME=TEXT7,
PARENT=Footing,
METADATA='anchor=0,parentanchor=0,flags=1,line=6,item=0',
$
TYPE=FOOTING,
LINE=7,
POSITION=(8.125000 10.625000),
DIMENSION=(0.930556 0.180556),
NAME=TEXT8,
PARENT=Footing,
METADATA='anchor=0,parentanchor=0,flags=1,line=7,item=0',
$
TYPE=FOOTING,
LINE=8,
COLOR='RED',
POSITION=(2.125000 10.750000),
DIMENSION=(5.000000 0.180556),
VERTICAL-ALIGN=CENTER,
NAME=TEXT5,
PARENT=Footing,
METADATA='anchor=8,parentanchor=8,flags=1,line=8,item=0',
$
TYPE=DATAMATRIX,
NAME=Data Matrix,
POSITION=(0.000000 1.625000),
DIMENSION=(9.500000 8.625000),
METADATA='focusverb=,flags=1>DB>anchor=0,parentanchor=0,flags=1,line=0,item=0$
ENDSTYLE
END

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


WebFOCUS 8.0.09
Windows 7
Output: Excel, PDF, HTML
 
Posts: 10 | Location: Portland, OR | Registered: December 13, 2007Report This Post
Platinum Member
posted Hide Post
quote:
TABLE FILE EMPDATAPRINT EMPDATA.EMPDATA.PIN EMPDATA.EMPDATA.LASTNAME EMPDATA.EMPDATA.FIRSTNAME EMPDATA.EMPDATA.MIDINITIAL EMPDATA.EMPDATA.DIV EMPDATA.EMPDATA.DEPT COMPUTE TEST1/A50 = 'Some Co I Ltd'; NOPRINT COMPUTE TEST2/A50 = 'Some Co I Ltd Monthly Report'; NOPRINT COMPUTE TEST3/A50 = 'Detail of Assets Report'; NOPRINTON TABLE SUBHEAD""HEADING"left carat:TEST1"FOOTING"Corporate Trust Services""www.someplace.com/cdo""left carat:TEST2""Page""left carat:TABPAGENO""of""left carat:TABLASTPAGE""left carat:TEST3"ON TABLE SUBFOOT""ON TABLE SET PAGE-NUM NOLEAD ON TABLE SET NEWLAYOUT ON ON TABLE SET COMPOSITION DEFAULTON TABLE NOTOTALON TABLE PCHOLD FORMAT PDFON TABLE SET HTMLCSS ONON TABLE SET STYLE *$TYPE=REPORT, FONT='TIMES NEW ROMAN', SIZE=9, NAME=Page, METADATA='>GUIDE>show=1,snap=0,GRID>show=1,snap=1,sizex=12,sizey=12,RULER>show=0,$TYPE=TABHEADING, NAME=Report Heading,$TYPE=TABFOOTING, NAME=Report Footing,$TYPE=HEADING, NAME=Heading,$TYPE=HEADING, LINE=1, BACKCOLOR='YELLOW', POSITION=(0.125000 1.250000), WRAP=ON, DIMENSION=(7.000000 0.125000), NAME=TEXT, PARENT=Heading, METADATA='anchor=1,parentanchor=1,flags=1,line=1,item=0',$TYPE=FOOTING, NAME=Footing,$TYPE=FOOTING, LINE=1, POSITION=(0.000000 10.625000), WRAP=ON, DIMENSION=(2.375000 0.125000), NAME=TEXT1, PARENT=Footing, METADATA='anchor=0,parentanchor=0,flags=9,line=1,item=0',$TYPE=FOOTING, LINE=2, POSITION=(0.000000 10.750000), DIMENSION=(1.875000 0.125000), NAME=TEXT2, PARENT=Footing, METADATA='anchor=0,parentanchor=0,flags=1,line=2,item=0',$TYPE=FOOTING, LINE=3, BACKCOLOR='YELLOW', POSITION=(2.125000 10.625000), DIMENSION=(5.125000 0.125000), NAME=TEXT3, PARENT=Footing, METADATA='anchor=8,parentanchor=8,flags=1,line=3,item=0', JUSTIFY=CENTER,$TYPE=FOOTING, LINE=4, POSITION=(7.375000 10.625000), DIMENSION=(0.375000 0.305556), NAME=TEXT4, PARENT=Footing, METADATA='anchor=0,parentanchor=0,flags=1,line=4,item=0',$TYPE=FOOTING, LINE=5, POSITION=(7.750000 10.625000), DIMENSION=(0.875000 0.250000), NAME=TEXT6, PARENT=Footing, METADATA='anchor=0,parentanchor=0,flags=1,line=5,item=0',$TYPE=FOOTING, LINE=6, POSITION=(7.875000 10.625000), DIMENSION=(0.305556 0.250000), NAME=TEXT7, PARENT=Footing, METADATA='anchor=0,parentanchor=0,flags=1,line=6,item=0',$TYPE=FOOTING, LINE=7, POSITION=(8.125000 10.625000), DIMENSION=(0.930556 0.180556), NAME=TEXT8, PARENT=Footing, METADATA='anchor=0,parentanchor=0,flags=1,line=7,item=0',$TYPE=FOOTING, LINE=8, COLOR='RED', POSITION=(2.125000 10.750000), DIMENSION=(5.000000 0.180556), VERTICAL-ALIGN=CENTER, NAME=TEXT5, PARENT=Footing, METADATA='anchor=8,parentanchor=8,flags=1,line=8,item=0',$TYPE=DATAMATRIX, NAME=Data Matrix, POSITION=(0.000000 1.625000), DIMENSION=(9.500000 8.625000), METADATA='focusverb=,flags=1>DB>anchor=0,parentanchor=0,flags=1,line=0,item=0$ENDSTYLEEND


Well, if you comment out a bunch of stuff and just looking at the basics, this does center test1 in the heading for a pdf. This is a brief extract.

HEADING
"FOOTING
"Corporate Trust Services"
"www.someplace.com/cdo"
"left carat: TEST2"
"Page"
"left carat: TABPAGENO"
"of"
"left carat: TABLASTPAGE"
"left carat: TEST3"

ON TABLE SUBFOOT
""
ON TABLE SET PAGE-NUM NOLEAD
-*ON TABLE SET NEWLAYOUT ON
-*ON TABLE SET COMPOSITION DEFAULT
-*ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
-*ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=HEADING,
JUSTIFY=CENTER,$
ENDSTYLE
END

When I ran just that part, the title test1 centers. That should get you started.

Vivian


Vivian Perlmutter
Aviter, Inc.


WebFOCUS Keysheet Rel. 8.0.2
(Almost) 1001 Ways to Work with Dates thru Rel. 8.0.2
Focus since 1982
WebFOCUS since the beginning
Vivian@aviter.com

 
Posts: 191 | Location: Henderson, Nevada | Registered: April 29, 2003Report This Post
Member
posted Hide Post
Hi Vivian,
Thank you for your suggestion but it's not what I am trying to do. I created the sample using EMPDATA so people can run it and see wwhat I need done. I don't need the whole footing centered. I just need pieces of it centered. Please run the report and see what it looks like.

I have already tried report painter. Setting grids on will work... but the footing is not far enough down the page. I need it at the bottom. This is not the exact report. The exact report also puts a line across the page directly above the footing.

I can get very close with a precision report and with layout composer but both have the same problem with centering just a piece of the footing.


WebFOCUS 8.0.09
Windows 7
Output: Excel, PDF, HTML
 
Posts: 10 | Location: Portland, OR | Registered: December 13, 2007Report 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     Precision Reporting Tool - Centered Justification

Copyright © 1996-2020 Information Builders