Remove Header page footer when printing add the following code can be Var Hkey_root,hkey_path,hkey_key;
Copy Code code 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 header (blank) according to the fill you want to set
Wsh.regwrite (Hkey_root+hkey_path+hkey_key, "");
hkey_key= "Footer";
Set footer (blank) According to the fill you want to set
Wsh.regwrite (Hkey_root+hkey_path+hkey_key, "");
Hkey_key= "Margin_bottom";
Set the next page margin (0) According to the fill you want to set
Wsh.regwrite (Hkey_root+hkey_path+hkey_key, "0");
Hkey_key= "Margin_left";
Set left margin (0) According to the fill you want to set
Wsh.regwrite (Hkey_root+hkey_path+hkey_key, "1");
Hkey_key= "Margin_right";
Set right margin (0)
Wsh.regwrite (Hkey_root+hkey_path+hkey_key, "0");
Hkey_key= "Margin_top";
Set up page margins (8)
Wsh.regwrite (Hkey_root+hkey_path+hkey_key, "1");