bryker
May 14th, 2004, 02:35 PM
On my main page (ASP.NET), I have an <img> which contains a map image (sourced from the MapPoint web service). When a user mouses over certain points on this map <img>, I show the user information in an iframe.
Everything looks good...until you print the window.
When you print it, the background of these iframes is transparent, allowing my underlying img to show through. Looks like crap. You can still read the iframe's contents, but I mean it looks like CRAP.
These iframes are pointed (src property) to another page in my app, which delivers the dynamic content. This content-server page has a background color set, as does the iframe itself. Doesn't matter, when it comes to printing. Prints transparent every time.
I've tried setting the (IE-specific) "allowtransparency" attribute explicitly to False, with the same results. I've also tried adding this sort of code to the header:
<style type="text/css" media="print">
iframe { background-color:#ffffff; }
</style>
with zero luck.
Bear in mind, this is ONLY when printing. Looks fine the rest of the time.
I'd appreciate any and all ideas. I can find NOTHING on the net about making iframe backgrounds opaque (but plenty about making them transparent!)
Thanks very much.
Everything looks good...until you print the window.
When you print it, the background of these iframes is transparent, allowing my underlying img to show through. Looks like crap. You can still read the iframe's contents, but I mean it looks like CRAP.
These iframes are pointed (src property) to another page in my app, which delivers the dynamic content. This content-server page has a background color set, as does the iframe itself. Doesn't matter, when it comes to printing. Prints transparent every time.
I've tried setting the (IE-specific) "allowtransparency" attribute explicitly to False, with the same results. I've also tried adding this sort of code to the header:
<style type="text/css" media="print">
iframe { background-color:#ffffff; }
</style>
with zero luck.
Bear in mind, this is ONLY when printing. Looks fine the rest of the time.
I'd appreciate any and all ideas. I can find NOTHING on the net about making iframe backgrounds opaque (but plenty about making them transparent!)
Thanks very much.