Saat mencetak, lepaskan footer halaman header dan tambahkan kode berikut sebelum dicetak. Var hkey_root, hkey_path, hkey_key;
Salinan kode adalah sebagai berikut:
Hkey_root = "hkey_current_user";
Hkey_path = "// software // microsoft // internet explorer // pagesetup //";
var head, kaki, atas, bawah, kiri, kanan;
var wsh = ActivexObject baru ("wscript.shell");
Hkey_key = "header";
// Atur header (kosong) Isi sesuai dengan apa yang ingin Anda atur
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "");
Hkey_key = "footer";
// atur footer (kosong) Isi sesuai dengan apa yang ingin Anda atur
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "");
Hkey_key = "margin_bottom";
// Atur margin halaman berikutnya (0) Isi sesuai dengan apa yang ingin Anda atur
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "0");
Hkey_key = "margin_left";
// atur margin kiri (0) Isi sesuai dengan apa yang ingin Anda atur
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "1");
Hkey_key = "margin_right";
// Atur margin halaman kanan (0)
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "0");
Hkey_key = "margin_top";
// Atur margin halaman sebelumnya (8)
Wsh.regwrite (hkey_root+hkey_path+hkey_key, "1");