[CLOSED] image's transparent background is not showing up as transparent in a report.
i have a image with transparent background. but when i use it in a report it doesnt show it.
i have below sample code and the image attached.
TABLE FILE SYSCOLUM
SUM
SYSCOLUM.SYSCOLUM.TBNAME NOPRINT
COMPUTE BlBox_img/A250 = 'benzcar.png'; AS ''
WHERE RECORDLIMIT EQ 7
WHERE READLIMIT EQ 7
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
PAGESIZE='Letter',
LEFTMARGIN=0.000000,
RIGHTMARGIN=0.000000,
TOPMARGIN=0.000000,
BOTTOMMARGIN=0.000000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
BACKCOLOR=RED,
$
TYPE=DATA,
BORDER-TOP=OFF,
BORDER-BOTTOM=OFF,
BORDER-LEFT=OFF,
BORDER-RIGHT=OFF,
BORDER-TOP-COLOR=RGB(255 255 255),
BORDER-BOTTOM-COLOR=RGB(255 255 255),
BORDER-LEFT-COLOR=RGB(255 255 255),
BORDER-RIGHT-COLOR=RGB(255 255 255),
$
TYPE=REPORT,
COLUMN=N2,
$
TYPE=DATA,
COLUMN=N2,
IMAGE=(BlBox_img),
SIZE=(5.09 2.09),
IMAGEALIGN=MIDDLE,
BACKCOLOR=GREEN,
$
ENDSTYLE
END
-RUN
final outcome is, to place it above another report in a PDF compound report.
WebFOCUS 8 Windows, All Outputs
September 05, 2019, 03:50 PM
MartinY
I have seen your URL, just not available to access : blocked by my organization security policies
Your sample code was with HTML output where it does work. PDF output is another game when "playing" with images and I don't have an answer for you up to now
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007