Focal Point
[SOLVED] Watermark/backimage for AHTML output

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

March 22, 2019, 03:37 PM
DWaybright
[SOLVED] Watermark/backimage for AHTML output
I've been reading the posts on watermarks or background images and have not found a solution for AHTML output. When I use
 
-HTMLFORM BEGIN NOEVAL
<style>
    body {
        background-image: url('/approot/enterprise_analytics/wmk_confidential.png');
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: left top;
        background-size: 500px 250px;
    }
</style>
-HTMLFORM END 

my report overlays the image. It works fine for HTML output, although I noticed if I do a "print to PDF" it disappears.
Any suggestions?

Thanks!

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


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
March 25, 2019, 01:44 PM
FP Mod Chuck
Deb

Not sure you will get any help here, I think you should open a case on this one.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
March 26, 2019, 08:37 AM
DWaybright
Thanks Chuck. I've opened a case.


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
April 02, 2019, 10:38 AM
DWaybright
For AHTML output, you can add a background image, like with HTML, but the code is different.
The first item in your style sheet MUST be:
 ON TABLE SET STYLE *
TYPE=REPORT,
  ALPHA=60,
$ 

If you put it later in your style sheet it won't work. If you include an external style sheet, you need to do that after the ALPHA code. The ALPHA number is the transparency of your report to be able to see through your report to the background image. Of course, this poses other issues, like making your background and report the same width and making your report transparent enough to see the watermark image, but not too transparent that you can't read the report.

This will include your image (apparently must be png file):
 TYPE=REPORT,
	OBJECT=IMAGE, IMAGE=confidential_watermark_light.png, POSITION=(0 0), Z-INDEX=TOP, DIMENSION=(7 2), 
$ 




Thanks to Richard at tech support.

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


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs