Focal Point
[CLOSED] image's transparent background is not showing up as transparent in a report.

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

September 05, 2019, 03:17 PM
vinodh
[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
 



Image URL: http://www.pngall.com/wp-conte...Car-Download-PNG.png

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8
Windows, All Outputs
September 05, 2019, 03:37 PM
MartinY
I can't see your image but using your code and one of my own image with transparency background, it does the trick

Maybe your image doesn't have a clear background ?


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
September 05, 2019, 03:39 PM
vinodh
my image is there in the end of the comment. pls see.

Image URL: http://www.pngall.com/wp-conte...Car-Download-PNG.png

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