use html for headers and footers

J

Jason

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.
 
J

Jim Ley

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.

http://www.meadroid.com/scriptx/

Jim.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top