Ao imprimir, remova o rodapé da página do cabeçalho e adicione o código a seguir antes de imprimir. Var hkey_root, hkey_path, hkey_key;
A cópia do código é a seguinte:
Hkey_root = "hkey_current_user";
Hkey_path = "// Software // Microsoft // Internet Explorer // PageSetup //";
Var Cabeça, Pé, Superior, Inferior, Esquerda, Direita;
var wsh = new ActiveXObject ("wscript.shell");
Hkey_key = "cabeçalho";
// Defina o cabeçalho (vazio) preencher de acordo com o que você deseja definir
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "");
Hkey_key = "rodapé";
// Defina o rodapé (vazio) preencher de acordo com o que você deseja definir
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "");
Hkey_key = "margin_bottom";
// Defina a próxima margem de página (0) preencher de acordo com o que você deseja definir
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "0");
Hkey_key = "margin_left";
// Defina a margem esquerda (0) preencher de acordo com o que você deseja definir
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "1");
Hkey_key = "margin_right";
// Defina a margem da página certa (0)
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "0");
Hkey_key = "margin_top";
// Defina a margem de página anterior (8)
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "1");