Discussion:
print header font size
(too old to reply)
Casey
2004-07-22 23:33:07 UTC
Permalink
How can i change the size of the font printed for the header and footer in msie 6. I don't want to modify the webpage fonts, just the header and footer. I looked in the registry and found [HC_USER\Software\Microsoft\Internet Explorer\PageSetup]
what are the header_01, header_02 & header_03 configurations for? I need a smaller font to print a complete url from our system as the header on the page.
Wei-Dong XU [MSFT]
2004-07-23 03:08:08 UTC
Permalink
Hi,

So far as I know, we can use the script below to change the print header
content.
//---------------------
<html>
<body>
<script language=javascript>
var currOrientation;
var currHeader;
var timeoutID;
function window.onbeforeprint()
{
var wshShell = new ActiveXObject("WScript.Shell");
currHeader =
wshShell.RegRead("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet
Explorer\\PageSetup\\header");

wshShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet
Explorer\\PageSetup\\header", "<font size=7>This is the header, just put
anything you want</font>");
timeoutID = setTimeout(RestoreSettings, 500, "JavaScript");
}

function RestoreSettings(sID)
{
clearTimeout(timeoutID);
alert("Click OK to continue AFTER dismissing the print dialog");
var wshShell = new ActiveXObject("WScript.Shell");
wshShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet
Explorer\\PageSetup\\header", currHeader);
}
</script>
Hello there, hello there<BR>
Hello there, hello there<BR>
Hello there, hello there<BR>
</body>
</html>
//---------------------

For changing the size of the content, we are researching this for you.
Appreciate your patience on the waiting.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Wei-Dong XU [MSFT]
2004-07-24 01:27:20 UTC
Permalink
Hi,

Based on my research, I'd suggest you can use the "HeaderFooter behavior"
tool, which can help you to control the print template. There is one MSDN
article introducing this for you:
HEADERFOOTER Element | HeaderFooter Behavior
http://msdn.microsoft.com/workshop/browser/hosting/printpreview/reference/be
haviors/headerfooter.asp?frame=true

In addition, you can also alter the print template with the help of IE com
object. The section "Print Templates" provides the detailed information for
you regarding this:
Print Templates
http://msdn.microsoft.com/workshop/browser/hosting/printpreview/reference/re
ference.asp?frame=true

Please feel free to let me know if you have any further question.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Casey
2004-07-27 15:53:19 UTC
Permalink
Is there a simple way of creating a style sheet to use in
the <Tools><Internet Options><Accessibility>[User style
sheet], that can print any webpage, without modifing the
source code of the webpage, with a specific header font
size. I need to make a style sheet to only affect the
header font size, and not to modify the remaining webpage
items/layout.
-----Original Message-----
Hi,
Based on my research, I'd suggest you can use
the "HeaderFooter behavior"
tool, which can help you to control the print template.
There is one MSDN
HEADERFOOTER Element | HeaderFooter Behavior
http://msdn.microsoft.com/workshop/browser/hosting/printpr
eview/reference/be
haviors/headerfooter.asp?frame=true
In addition, you can also alter the print template with
the help of IE com
object. The section "Print Templates" provides the
detailed information for
Print Templates
http://msdn.microsoft.com/workshop/browser/hosting/printpr
eview/reference/re
ference.asp?frame=true
Please feel free to let me know if you have any further
question.
Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and
confers no rights.
.
Wei-Dong XU [MSFT]
2004-07-30 05:40:50 UTC
Permalink
Hi,

Greatly appreciate your patience! Based on my research, I don't think there
is one simple CSS style sheet file which can be speciftied to contorl the
print header font. Please feel free to let me know if you have any further
question.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Casey
2004-07-30 14:03:02 UTC
Permalink
Thanks anyway. I'll keep searching.
Post by Wei-Dong XU [MSFT]
Hi,
Greatly appreciate your patience! Based on my research, I don't think there
is one simple CSS style sheet file which can be speciftied to contorl the
print header font. Please feel free to let me know if you have any further
question.
Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Wei-Dong XU [MSFT]
2004-07-31 00:36:56 UTC
Permalink
You are welcome! :0)

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Continue reading on narkive:
Loading...