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.

New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.

What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.

During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
PDF Report Styling
 Login/Join
 
Silver Member
posted
Hi,
I have couple of styling questions related to PDF report.


1.Is there a way to center align the sort data to the page that is when u run the below code i need to the value of SORT VAL column at the center of the page instead of displaying it at the first row.

2.Can we display the value of SORT VAL column once on every page instead of displaying at the beginning of the report.

Thanks for your time.


FILEDEF H1 DISK H1( APPEND
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS H1 FORMAT ALPHA
END
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS H1 FORMAT ALPHA
END
DEFINE FILE H1
'SORT VAL'/A10 = 'FIRST COL';
END
TABLE FILE H1
PRINT
COUNTRY
CAR
MODEL
SALES
LENGTH
CAR
COUNTRY
MODEL
SALES
BY 'SORT VAL'
ON TABLE PCHOLD FORMAT PDF
ON TABLE NOTOTAL
ON TABLE SET PAGE OFF
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='Letter', SQUEEZE=ON, LEFTMARGIN=0.81250000, RIGHTMARGIN=0.11250000, TOPMARGIN=0, BOTTOMMARGIN=0.050000000, ORIENTATION=LANDSCAPE,$
TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=8,STYLE=NORMAL,LEFTGAP = .031,RIGHTGAP = .031,TOPGAP = .05,BOTTOMGAP = .05,$
TYPE = TITLE, GRID=OFF, TOPGAP=0.04, BOTTOMGAP=0.04, $
TYPE=TITLE, STYLE=-UNDERLINE+BOLD,BORDER= LIGHT,BORDER-COLOR = SILVER,JUSTIFY = CENTER,$
TYPE=REPORT,COLUMN=P1,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P2,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P3,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P4,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P5,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P6,SQUEEZE=1.25 ,WRAP=1.25 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P7,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P8,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P9,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P10,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$

TYPE=DATA, SIZE=8,BORDER= LIGHT,BORDER-COLOR = SILVER,JUSTIFY = CENTER,$

ENDSTYLE
END


WF 7.7.05 on Linux
HTML, PDF, EXCEL
 
Posts: 39 | Registered: July 21, 2009Report This Post
Guru
posted Hide Post
Move 'SORT VAL' to a HEADING. Also it's not good to use fieldnames with spaces. Use SORT_VAL or redfine the field.

  
BY 'SORT VAL' NOPRINT
HEADING
"<SORT VAL"


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Silver Member
posted Hide Post
heading is displayed on top of the page but i want the data to be centered to the middle of the page vertically.


WF 7.7.05 on Linux
HTML, PDF, EXCEL
 
Posts: 39 | Registered: July 21, 2009Report This Post
Guru
posted Hide Post
Try using A SUBHEADING.


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Silver Member
posted Hide Post
I want the data in the column 'SORT VAL' to be displayed in the middle of the column instead of the first row.


WF 7.7.05 on Linux
HTML, PDF, EXCEL
 
Posts: 39 | Registered: July 21, 2009Report This Post
Guru
posted Hide Post
Can you give an example of the report layout?

Thanx


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Silver Member
posted Hide Post
If you run the above code you see that the first column is 'SORT VAL' and the data 'FIRST COL' is displayed in the first row and instead of displaying it in the first row i want 'FIRST COL' to be aligned to the middle of 10th and 11th row.


WF 7.7.05 on Linux
HTML, PDF, EXCEL
 
Posts: 39 | Registered: July 21, 2009Report This Post
Guru
posted Hide Post
Try something like this.
 
FILEDEF H1 DISK H1( APPEND
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS H1 FORMAT ALPHA
END
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS H1 FORMAT ALPHA
END
DEFINE FILE H1
'SORT VAL'/A10 = 'FIRST COL';
END
TABLE FILE H1
PRINT
COUNTRY IN 0
CAR	   IN 10
MODEL  IN 20
SALES  IN 30
LENGTH IN 50
CAR    IN 60
COUNTRY IN 67
MODEL   IN 75
SALES   IN 85
BY 'SORT VAL' IN 40
ON TABLE PCHOLD FORMAT PDF
ON TABLE NOTOTAL
ON TABLE SET PAGE OFF
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='Letter', SQUEEZE=ON, LEFTMARGIN=0.81250000, RIGHTMARGIN=0.11250000, TOPMARGIN=0, BOTTOMMARGIN=0.050000000, ORIENTATION=LANDSCAPE,$
TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=8,STYLE=NORMAL,LEFTGAP = .031,RIGHTGAP = .031,TOPGAP = .05,BOTTOMGAP = .05,$
TYPE = TITLE, GRID=OFF, TOPGAP=0.04, BOTTOMGAP=0.04, $
TYPE=TITLE, STYLE=-UNDERLINE+BOLD,BORDER= LIGHT,BORDER-COLOR = SILVER,JUSTIFY = CENTER,$
TYPE=REPORT,COLUMN=P1,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P2,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P3,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P4,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P5,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P6,SQUEEZE=1.25 ,WRAP=1.25 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P7,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P8,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P9,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P10,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$

TYPE=DATA, SIZE=8,BORDER= LIGHT,BORDER-COLOR = SILVER,JUSTIFY = CENTER,$

ENDSTYLE
END



WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Gold member
posted Hide Post
Or you could open this in the GUI enter heading mode make 1 item and center it looks like this

TABLE FILE H1
PRINT
'H1.H1.COUNTRY'
'H1.H1.CAR'
'H1.H1.MODEL'
'H1.H1.SALES'
'H1.H1.LENGTH'
'H1.H1.CAR'
'H1.H1.COUNTRY'
'H1.H1.MODEL'
'H1.H1.SALES'
BY 'SORT_VAL' NOPRINT
HEADING
"ON TABLE SET PAGE OFF
ON TABLE SET PAGE NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.805556,
RIGHTMARGIN=0.055556,
TOPMARGIN=0.000000,
BOTTOMMARGIN=0.041667,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=8,
STYLE=NORMAL,
RIGHTGAP=0.027778,
LEFTGAP=0.027778,
TOPGAP=0.041667,
BOTTOMGAP=0.041667,
$
TYPE=DATA,
SIZE=8,
JUSTIFY=CENTER,
$
TYPE=TITLE,
STYLE=BOLD,
TOPGAP=0.027778,
BOTTOMGAP=0.027778,
JUSTIFY=CENTER,
$
TYPE=HEADING,
LINE=1,
OBJECT=FIELD,
ITEM=1,
JUSTIFY=CENTER,
WIDTH=8.500,
$
TYPE=REPORT,
COLUMN=N1,
SIZE=8,
STYLE=NORMAL,
WRAP=0.750000,
$
TYPE=REPORT,
COLUMN=N2,
SIZE=8,
STYLE=NORMAL,
WRAP=0.750000,
$
TYPE=REPORT,
COLUMN=N3,
SIZE=8,
STYLE=NORMAL,
WRAP=0.750000,
$
TYPE=REPORT,
COLUMN=N4,
SIZE=8,
STYLE=NORMAL,
WRAP=0.750000,
$
TYPE=REPORT,
COLUMN=N5,
SIZE=8,
STYLE=NORMAL,
WRAP=0.750000,
$
TYPE=REPORT,
COLUMN=N6,
SIZE=8,
STYLE=NORMAL,
WRAP=1.250000,
$
TYPE=REPORT,
COLUMN=N7,
SIZE=8,
STYLE=NORMAL,
WRAP=0.750000,
$
TYPE=REPORT,
COLUMN=N8,
SIZE=8,
STYLE=NORMAL,
WRAP=0.750000,
$
TYPE=REPORT,
COLUMN=N9,
SIZE=8,
STYLE=NORMAL,
WRAP=0.750000,
$
TYPE=REPORT,
COLUMN=N10,
SIZE=8,
STYLE=NORMAL,
WRAP=0.750000,
$
ENDSTYLE
END


Duane

WebFOCUS 8.0.7
DS 8.0.7 AS 8.0.7
Windows
Output: Excel, HTML, PDF, AHTML,Mobile
In Focus 1982
 
Posts: 83 | Location: Princeton NJ | Registered: October 26, 2007Report This Post
Virtuoso
posted Hide Post
@WF_DEVLOPER

I wrote a couple of WebFOCUS articles years ago that may be of help to you. Here is a direct link to the second one which is located under the IBI Developer Center:

WebFOCUS HTML and PDF Report Design - Part II


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Silver Member
posted Hide Post
Hi All,
thanks for the replies. I am sorry for not able to explain my issue properly. What i am looking for is to display the SORT_VAL column the way it is displayed in the below report with out displaying the empty space underneath the other columns. I just want to move the sort_val data only.

FILEDEF H1 DISK H1( APPEND
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS H1 FORMAT ALPHA
END
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS H1 FORMAT ALPHA
END
DEFINE FILE H1
LF/A1 = HEXBYT(10, 'A1');
CR/A1 = HEXBYT(13, 'A1');
CRLF/A2 = CR || LF;

'SORT_VAL'/A100 = CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || 'FIRST COL';
END
TABLE FILE H1
PRINT
COUNTRY
CAR
MODEL
SALES
LENGTH
CAR
COUNTRY
MODEL
SALES
BY 'SORT_VAL'
ON TABLE PCHOLD FORMAT PDF
ON TABLE NOTOTAL
ON TABLE SET PAGE OFF
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='Letter', SQUEEZE=ON, LEFTMARGIN=0.81250000, RIGHTMARGIN=0.11250000, TOPMARGIN=0, BOTTOMMARGIN=0.050000000, ORIENTATION=LANDSCAPE,$
TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=8,STYLE=NORMAL,LEFTGAP = .031,RIGHTGAP = .031,TOPGAP = .05,BOTTOMGAP = .05, LINEBREAK = 'CRLF',$
TYPE = TITLE, GRID=OFF, TOPGAP=0.04, BOTTOMGAP=0.04, $
TYPE=TITLE, STYLE=-UNDERLINE+BOLD,BORDER= LIGHT,BORDER-COLOR = SILVER,JUSTIFY = CENTER,$
TYPE=REPORT,COLUMN=P1,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P2,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P3,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P4,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P5,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P6,SQUEEZE=1.25 ,WRAP=1.25 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P7,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P8,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P9,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P10,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$

TYPE=DATA, SIZE=8,BORDER= LIGHT,BORDER-COLOR = SILVER,JUSTIFY = CENTER,$

ENDSTYLE
END


WF 7.7.05 on Linux
HTML, PDF, EXCEL
 
Posts: 39 | Registered: July 21, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders