标题:[求助]为什么我的打印功能在.NET里面可以执行,但在IE里面就用不了呢??
取消只看楼主
xinghun868
Rank: 1
等 级:新手上路
帖 子:62
专家分:0
注 册:2007-6-1
 问题点数:0 回复次数:0 
[求助]为什么我的打印功能在.NET里面可以执行,但在IE里面就用不了呢??




<HTML>
<HEAD>
<title>menzhendayin</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<META http-equiv="Content-Type" content="text/html; charset=gb2312" />
<SCRIPT language="javascript">
  function printsetup(){
  // 打印页面设置
  wb.execwb(8,1);
  }
  function printpreview(){
  // 打印页面预览
    
  wb.execwb(7,1);
     
    
  }

  function printit()
  {
  //if (confirm('确定打印吗?'))
{
  wb.execwb(6,6)
  }
  }
</SCRIPT>
</HEAD>
<body MS_POSITIONING="GridLayout">
<DIV align="center">
<OBJECT id="wb" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"
name="wb">
</OBJECT>
<INPUT onclick="javascript:printit()" type="button" value="打印" name="button_print" />
<INPUT onclick="javascript:printsetup();" type="button" value="打印页面设置" name="button_setup" />
<INPUT onclick="javascript:printpreview();" type="button" value="打印预览" name="button_show" />
</DIV>
<form id="Form1" method="post" runat="server">
<FONT face="宋体"></FONT>
<asp:label id="Label1" style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 72px" runat="server"
Width="216px" Height="24px">请输入要打印的病人的编号:</asp:label><asp:datagrid id="DataGrid1" style="Z-INDEX: 102; LEFT: 24px; POSITION: absolute; TOP: 216px"
runat="server" Width="672px" Height="128px" BackColor="Silver"></asp:datagrid><asp:label id="Label2" style="Z-INDEX: 103; LEFT: 72px; POSITION: absolute; TOP: 168px" runat="server"
Width="80px" Height="24px">病人姓名:</asp:label><asp:label id="Label3" style="Z-INDEX: 104; LEFT: 384px; POSITION: absolute; TOP: 168px" runat="server"
Width="64px" Height="24px">总金额:</asp:label><asp:textbox id="TextBox1" style="Z-INDEX: 105; LEFT: 256px; POSITION: absolute; TOP: 64px" runat="server"
Width="184px" Height="32px"></asp:textbox><asp:button id="Button1" style="Z-INDEX: 106; LEFT: 472px; POSITION: absolute; TOP: 64px" runat="server"
Width="96px" Height="32px" Text="查询"></asp:button><asp:textbox id="TextBox2" style="Z-INDEX: 107; LEFT: 200px; POSITION: absolute; TOP: 160px"
runat="server" Height="32px" ReadOnly="True" BackColor="Silver"></asp:textbox><asp:textbox id="TextBox3" style="Z-INDEX: 108; LEFT: 480px; POSITION: absolute; TOP: 160px"
runat="server" Width="152px" Height="32px" ReadOnly="True" BackColor="Silver"></asp:textbox></form>
</body>
</HTML>

请教各位大侠是什么原因???


搜索更多相关主题的帖子: 打印 NET 
2007-10-29 21:44



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-181800-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.050166 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved