Al imprimir, retire el pie de página de la página del encabezado y agregue el siguiente código antes de imprimir. Var hkey_root, hkey_path, hkey_key;
La copia del código es la siguiente:
HKEY_ROOT = "HKEY_CURRENT_USER";
Hkey_path = "// software // Microsoft // Internet Explorer // PageSetup //";
Var Cabeza, pie, arriba, abajo, izquierda, derecha;
var wsh = new ActiveXObject ("wscript.shell");
Hkey_key = "encabezado";
// Establecer el encabezado (vacío) Complete de acuerdo con lo que desea establecer
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "");
Hkey_key = "pie de página";
// Establecer el pie de página (vacío) Complete de acuerdo con lo que desea establecer
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "");
Hkey_key = "margin_bottom";
// Establecer el margen de página siguiente (0) Complete de acuerdo con lo que desea establecer
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "0");
Hkey_key = "margin_left";
// Establecer el margen izquierdo (0) Complete de acuerdo con lo que desea establecer
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "1");
Hkey_key = "margin_right";
// establece el margen de la página derecho (0)
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "0");
Hkey_key = "margin_top";
// Establecer el margen de página anterior (8)
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "1");