use html for headers and footers

Giganews Newsgroups
Subject: use html for headers and footers
Posted by:  jfreet…@yahoo.com (Jason)
Date: 14 Jul 2003

I would like to include an html table as my header and footer.  Does
any one know how to use html as the header/footer?

For example, every page would have the following header/footer:

My Company            A Graphic          A Variable      The DATE

I figured one way to do this would be to use a com object using the
following functions
RegOpenKeyEx Lib "advapi32.dll"
RegQueryValueEx Lib "advapi32.dll"
RegSetValueEx Lib "advapi32.dll".

Then I could pass html to the registry via
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup].
This works!! However, it passes a string and not html.

The next thing I am going to try is simply printing via a com object
and the printdlg api.  However, isn't there a simpler way to use html
as headers for printing purposes with javascript?  Any help would be
greatly appreciated.

Replies