Focal Point
[CLOSED] In PDF report styling for heading each item different backgrounds color

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7897005586

February 11, 2017, 02:02 PM
Developer
[CLOSED] In PDF report styling for heading each item different backgrounds color
Hi In PDF report styling for Heading
each item in line with different backgrounds color is not coming for below code
but same code html report the backgrounds color is coming

Please any one let me know what i'm missing in my below code


 

TABLE FILE CAR
PRINT CAR MODEL
BY COUNTRY  PAGE-BREAK
HEADING
"Per Country <COUNTRY<+0>   <+0> Vehicle:<CAR<+0>Per Model<MODEL"

ON TABLE SET PAGE NOPAGE
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET STYLE *
PAGESIZE='Letter',
LEFTMARGIN=0.15,RIGHTMARGIN=0.0,TOPMARGIN=0.15,BOTTOMMARGIN=0.0,
SQUEEZE=ON,ORIENTATION=LANDSCAPE,$

TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=1,  STYLE=BOLD,$
TYPE=HEADING, LINE=1, OBJECT=FIELD, ITEM=1, BACKCOLOR=GREEN, STYLE=BOLD,$
TYPE=HEADING, LINE=1, OBJECT=TEXT,ITEM=2,BACKCOLOR=WHITE,STYLE=BOLD,$
TYPE=HEADING, LINE=1, OBJECT=TEXT,ITEM=3,STYLE=BOLD,$
TYPE=HEADING, LINE=1, OBJECT=FIELD,ITEM=2,BACKCOLOR=YELLOW,STYLE=BOLD,$
TYPE=HEADING, LINE=1, OBJECT=TEXT,ITEM=4,STYLE=BOLD,$
TYPE=HEADING, LINE=1, OBJECT=FIELD,ITEM=3,BACKCOLOR=BLUE,STYLE=BOLD,$
END

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


WebFOCUS 8202
February 13, 2017, 09:16 AM
BabakNYC
I just tested this example in 8201 and the output for HTML and PDF look the same color. Are you really running 7.6?


WebFOCUS 8206, Unix, Windows
February 13, 2017, 09:45 AM
Francis Mariani
In WF 8.0.08 I see the three colours - green, yellow and blue, for both PDF and HTML.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
February 13, 2017, 11:40 PM
Developer
Thank you
i'm running in 7.5v


WebFOCUS 8202
February 17, 2017, 07:44 PM
Tamra
Is this the Reporting Server that you are referring to as 7.5.v.?

Are you running this on the Reporting Server or using Dev Studio or App Studio?

This code seems to be working in WebFOCUS 8 and 8.1.05 and WebFOCUS 7.6.11

Can you provide the gen# of the Reporting Server - click on HELP on the top right corner? Also, the version and gen# for either Dev Studio or AppStudio.

AdobeĀ® ReaderĀ®. Adobe Reader X (10.0.1) is certified with Developer Studio WebFOCUS 7.7.05.

Please update your profile to reflect the version of WebFOCUS you are running.


Thank you for participating in the Focal Point Forum!
Tamra Colangelo
Focal Point Moderator
Information Builders


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5