saucer(思归) 等高手救命!!打印问题!!如何设置页边距!!最后50分!!受不了 你这应该采用的是网络提供的方法,很难管用哦web打印本来就是个麻烦事,要么请客户自己通过ie设定,要么帮客户把数据转成excel好了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 try:<body style="margin:0"> 用javascript写,通过修改客户机的注册表达到目的。先在Head中写:<script language="JavaScript">var hkey_root,hkey_path,hkey_keyhkey_root="HKEY_CURRENT_USER"hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\"function pagesetup_null(){ try{ var RegWsh = new ActiveXObject("WScript.Shell") hkey_key="margin_bottom"//下边距 RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"0.23346") hkey_key="margin_left"//左边距 RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"0.20669") hkey_key="margin_right"//右边距 RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"0.27333") hkey_key="margin_top"//上边距 RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"0.16667") }catch(e){}}</script>然后在Body中写:onload="pagesetup_null()"就可以了,但是如果客户机禁止注册表修改,这种方法就不管用了。 <body style="margin:0"> 在C#用dataAdapt对数据库进行操作。。。 .net 在线组卷 生成Word文档问题 这个循环输出不会写了,谁解决了,给谁分 WEB下TREEVIEW实现网络硬盘 asp.net 提示等号附近有语法错误 怎样将*.swf文件做成.gif缩略图吗? 多表数据更新问题 用frameset设计页面的问题? 编辑页面传值问题 如何保存传过来的值 datagrid问题,根据不同条件,重新绑定datagrid,分页时出现问题?在线等待,一定结贴! 在自定义控件的Sub New()中能够取得实例页的路径吗? 如何使用datagrid的dataview排序?
先在Head中写:
<script language="JavaScript">
var hkey_root,hkey_path,hkey_key
hkey_root="HKEY_CURRENT_USER"
hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\"function pagesetup_null()
{
try{
var RegWsh = new ActiveXObject("WScript.Shell")
hkey_key="margin_bottom"//下边距
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"0.23346")
hkey_key="margin_left"//左边距
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"0.20669")
hkey_key="margin_right"//右边距
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"0.27333")
hkey_key="margin_top"//上边距
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"0.16667")
}catch(e){}
}
</script>
然后在Body中写:onload="pagesetup_null()"就可以了,但是如果客户机禁止注册表修改,这种方法就不管用了。