Hi All, Greetings. I am trying to generate a PDF report where I need to have the back ground color of a column spanned to a limited width and height.
TABLE FILE CAR PRINT COUNTRY CAR SEAT ON TABLE SET ONLINE-FMT PDF ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * TYPE= REPORT,SIZE=8,$ TYPE= TITLE, BORDER=MEDIUM,$ TYPE= DATA, BORDER=MEDIUM, TOPGAP=0.1, BOTTOMGAP=0.1,$ ENDSTYLE END
In this case, the back ground color is applied to the whole column. But my need is to specify the back ground only on a specific width and height of the column. Can this be achieved? Thanks in advance.This message has been edited. Last edited by: Kerry,
Regards, Kasi Krishnan WF 7.1.4 & WF 7.6.9: Databases - DB2, SQL Server 2000. OS: Windows & AIX
April 22, 2009, 02:34 PM
<JG>
The example does not contain a background colour.
For example
TYPE=DATA, COLUMN=P3,BACKCOLOR=RED,$
April 22, 2009, 02:41 PM
krishkasi
I apologize.
TABLE FILE CAR PRINT COUNTRY CAR SEAT ON TABLE SET ONLINE-FMT PDF ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * TYPE= REPORT,SIZE=8,$ TYPE= TITLE, BORDER=MEDIUM,$ TYPE= DATA, BORDER=MEDIUM, TOPGAP=0.1, BOTTOMGAP=0.1,$ TYPE= DATA, COLUMN = N3, BACKCOLOR=RGB(50 50 230),$ ENDSTYLE END
is there anyway, we can apply the back ground colour only on a specific width and height inside the column.
Regards, Kasi Krishnan WF 7.1.4 & WF 7.6.9: Databases - DB2, SQL Server 2000. OS: Windows & AIX
April 22, 2009, 02:59 PM
<JG>
No the background colour will fill the cell.
Even in PDF you must regard a particular data element as a cell.
April 22, 2009, 03:22 PM
Tom Flynn
TABLE FILE CAR
SUM
RETAIL_COST AS 'Retail Cost'
DEALER_COST AS 'Dealer Cost'
COMPUTE XPCT/P6.2B% = (RETAIL_COST / DEALER_COST) * 100; AS '%'
SALES AS 'Sales'
BY COUNTRY AS 'Country'
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
LEFTMARGIN = 0.550000,
RIGHTMARGIN = 0.250000,
TOPMARGIN = 0.35000000,
BOTTOMMARGIN= 0.55000000,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=10,
$
TYPE=REPORT, NAME='TITLE_1', OBJECT=BOX, POSITION=(0.55 0.90), DIMENSION=(0.95 0.20), BACKCOLOR=RED,$
ENDSTYLE
END
-RUN
Tom, My reports runs into multiple rows and pages. i want to apply this logic to a coilumn value in all the rows. can you please advise how to do it?
Regards, Kasi Krishnan WF 7.1.4 & WF 7.6.9: Databases - DB2, SQL Server 2000. OS: Windows & AIX
April 22, 2009, 03:58 PM
Tom Flynn
JG correctly answered your question, although, this will answer your "new" criteria:
TABLE FILE CAR
SUM
RETAIL_COST AS 'Retail Cost'
DEALER_COST AS 'Dealer Cost'
COMPUTE XPCT/P6.2B% = (RETAIL_COST / DEALER_COST) * 100; AS '%'
SALES AS 'Sales'
BY COUNTRY AS 'Country'
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
LEFTMARGIN = 0.550000,
RIGHTMARGIN = 0.250000,
TOPMARGIN = 0.35000000,
BOTTOMMARGIN= 0.55000000,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=10,
$
TYPE=DATA, COLUMN=COUNTRY, BORDER=ON, BACKCOLOR=RED, WHEN=COUNTRY EQ 'JAPAN',$
ENDSTYLE
END
-RUN