页面打印弹出提示框
我做了一个功能,就是打印页面内容的:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DisPhoto.aspx.cs" Inherits="DisPhoto" EnableViewState="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>图片打印</title>
<object classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0" id="wb" name="wb" width="0">
</object>
<script language="javascript" type="text/javascript">
function printsetup(){
// 打印页面设置
wb.execwb(8,1);
}
function printpreview(){
// 打印页面预览
wb.execwb(7,1);
}
function printit()
{
if (confirm('确定打印吗?')) {
wb.execwb(6,1) ;
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input type="button" value="打印" runat="server" name="print" id="print" onclick="javascript:printit()"/>
<input type="button" value="打印页面设置" name="print1" id="print1" onclick="javascript:printsetup();"/>
<input type="button" value="打印预览" name="print2" id="print2" onclick="javascript:printpreview();"/>
<input type="button" value="返回" name="print3" id="print3" onclick="javascript:history.back(-1) ;" />
<asp:Image ID="Image1" runat="server" ImageUrl="E:\\demo\\ee942b8228d8.png" />
</div>
</form>
</body>
</html>
在我的电脑上是没有问题的,可以弹出打印对话框,,,
可是部署到服务器后,
我再次打开 却弹出“您的网页浏览器已经阻止此站点以不安全的方式使用ActiveX控件,因此,此页可能显示不正确”
为什么?