When printing, remove the header page footer and add the following code before printing. Var HKEY_Root, HKEY_Path, HKEY_Key;
The code copy is as follows:
HKEY_Root="HKEY_CURRENT_USER";
HKEY_Path="//Software//Microsoft//Internet Explorer//PageSetup//";
var head,foot,top,bottom,left,right;
var Wsh=new ActiveXObject("WScript.Shell");
HKEY_Key="header";
//Set the header (empty) Fill in according to what you want to set
Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"");
HKEY_Key="footer";
//Set the footer (empty) Fill in according to what you want to set
Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"");
HKEY_Key="margin_bottom";
//Set the next page margin (0) Fill in according to what you want to set
Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"0");
HKEY_Key="margin_left";
//Set the left margin (0) Fill in according to what you want to set
Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"1");
HKEY_Key="margin_right";
//Set right page margin (0)
Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"0");
HKEY_Key="margin_top";
//Set the previous page margin (8)
Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"1");