web打印:如何设置横打,纵打以及页面大小

fdxtt2000 2004-01-05 12:26:31
以下是设置网页打印的页眉页脚,其他属性怎么设置呢?
<script language="VBScript">
dim hkey_root,hkey_path,hkey_key
hkey_root="HKEY_CURRENT_USER"
hkey_path="\Software\Microsoft\Internet Explorer\PageSetup"
'//设置网页打印的页眉页脚为空
on error resume next
Set RegWsh = CreateObject("WScript.Shell")
hkey_key="\header"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""
hkey_key="\footer"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""</script>
...全文
107 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
xieyj 2004-01-06
  • 打赏
  • 举报
回复
上:
hkey_key="\margin_top"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""
底:
hkey_key="\margin_bottom"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""
左边距:
hkey_key="\margin_left"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""
右边距:
hkey_key="\margin_right"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""

28,405

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧