Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printable WaterMark for HTML 1

Status
Not open for further replies.

CubeE101

Programmer
Nov 19, 2002
1,492
US
I Made a background image that appears like a watermark, though it does not print...

Is there a way to make a printable water mark with HTML ?

Perhaps an image on a top layer centered in the viewable area, with an alpha filter ?
If so, can you use rotated (30 - 45 degrees) text instead of an image?

This will ONLY be for use in IE, as it will be hard coded into a VB program to view a report from generated XML via XSL on company machines...

I'm not sure how to make floating layers, or whatever you call them...

Small example clips or links would be GREATLY appricated, otherwise hints will work to... ;-)

Thanks in advance,
-Josh

Visit My Site
PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 

To enable background images to print, you need to enable that option in IE. I think it is under Tools, Options, Advanced, Printing, "Print background colours and images".

You should be able to use IE-only filters for alpha and posisbly rotation, although I've never tried printing with those.

Hope this helps,
Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Cool I managed to use VB to change the registry while it prints and then change it back...

What would it take to use SVG to draw the text on a layer centered behind the document, at say 45 degrees?

Is this posible?

Say like a 72pt, pink (#FFA0A0) "SAMPLE" centered on the document in the background rotated at 45 degrees ccw...

Would it be possible to do this with SVG and have it print on each page?

If I use an external image, there is a chance it could get sent to a customer, and they would not have access to the image (which is currently located on our network)

Visit My Site
PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
You should be able to do that no problem. To see one way of rotating text in IE, visit this URL:


and click on the "Click here for demo" link. Rather good, I thought.

Hope this helps,
Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]
 
That is CRAZY!!!

I think I know what to do as far as drawing the text (I was looking into it earlier, and will probably research it more when I get home...)

But what about centering it on the page in the background...???

Visit My Site
PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 

You can probably use CSS expressions in a print style sheet to do this. It's not something I've played with, but I'm sure someone will be able to help you out (I'd post a new thread if you're interested).

You could also use JavaScript to style whatever element you put on the page - if you're using JS anyway (I'd ask in forum216 about this)... just set the top and left style properties.

Hope this helps,
Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top