Changing Report Font and Size

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Hi Alex,

Is it possible to change the report font and font size ?

Regards,

Jromariz.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Yes, you can use "External header" option and define font style in external file. As a base for your own header you can use file "stdHeader.html" in directory "Examples"

Regards
Alex
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Ok,

Tanks for the tip.

Regards,

Jromariz.
doubleu
Posts: 10
Joined: Wed Jan 22, 2003 6:00 pm

Post by doubleu »

how exactly do you add font settings in the header that affect a normal, HTML Report for Admin? I would like the text to be in verdana 8 or 10pt rather than the default font used here: http://www.ks-soft.net/hostmon.eng/examples/rep-man.htm
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Just add <font face="verdana" size=5> tag into header, e.g.
<html>
<head>
<meta name="GENERATOR" content="KS-Soft HostMonitor">
<title>HostMonitor report</title>
<STYLE TYPE="text/css"><!-- a:hover { color: "#E8F7FF"; } --> </STYLE>
</head>
<body bgcolor="#00008C" text="#DFDFDF" link="#65D3FE" vlink="#65D3FE" alink="#E8F7FF">
<p align="left"><u><strong><big><big>HostMonitor Report</big></big><br>
</strong></u><font face="Arial">Generated on %Date% at %Time%</font></p>
<font face="verdana" size=6>
<div align="center"><center>
<table border="0" bordercolor="#00008C" width="100%">


About size: I think its impossible to set some specific size (like you want 8 or 10pt) because size of the fonts depends on browser. You can use numbers from 1 to 7 for size. But may be I am wrong about size, I didn't read HTML specification lately..

Regards
Alex
doubleu
Posts: 10
Joined: Wed Jan 22, 2003 6:00 pm

Post by doubleu »

I was just about ready to reply pleading that this isn't working, what am I doing wrong! But then I realized I've been using Phoenix instead of Internet Explorer, and for some reason it shows Times New Roman instead of Verdana.

Thank you for your help with the header! :smile:
Locked