印刷するときは、ヘッダーページフッターを取り外し、印刷する前に次のコードを追加します。 var hkey_root、hkey_path、hkey_key;
コードコピーは次のとおりです。
hkey_root = "hkey_current_user";
hkey_path = "// software // microsoft //インターネットエクスプローラー// pagesetup //";
VARヘッド、フット、トップ、ボトム、左、右;
var wsh = new ActiveXObject( "wscript.shell");
hkey_key = "header";
//ヘッダー(空)を設定して、設定したいものに従って入力します
wsh.regwrite(hkey_root+hkey_path+hkey_key、 "");
hkey_key = "footer";
//フッター(空)を設定して、設定したいものに従って入力します
wsh.regwrite(hkey_root+hkey_path+hkey_key、 "");
hkey_key = "mign_bottom";
//次のページのマージン(0)を設定するものを設定します
wsh.regwrite(hkey_root+hkey_path+hkey_key、 "0");
hkey_key = "marvis_left";
//左マージンを設定する(0)設定したいものに従って入力します
wsh.regwrite(hkey_root+hkey_path+hkey_key、 "1");
hkey_key = "mirgn_right";
//右ページマージン(0)を設定します
wsh.regwrite(hkey_root+hkey_path+hkey_key、 "0");
hkey_key = "mign_top";
//前のページのマージンを設定する(8)
wsh.regwrite(hkey_root+hkey_path+hkey_key、 "1");