大数据之路

博客园 首页 新随笔 联系 订阅 管理
1 调用ie的浏览器有2中方法
1.parent.main.WebBrowser.ExecWB(7,1);"调用execweb(参数)

<OBJECT id="WebBrowser" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0"
                width
="0" VIEWASTEXT>
            
</OBJECT>
     说明:此代码放在html 中 打印模版
2..应用windoew.print()方法调用ie6.0的打印但是打印的时候全部打印用以下方法实现控制打印的部分

以下是调用部分即实现<!startprint-->yu与<!--endprin>之间的打印其余的不打印
1<!--startprint--><asp:label id="Label1" style="Z-INDEX: 101; LEFT: 160px; POSITION: absolute; TOP: 64px" runat="server"
2                Width="224px" Height="16px">以下部分打印</asp:label><asp:textbox id="TextBox1" class="noprint" style="Z-INDEX: 105; LEFT: 160px; POSITION: absolute; TOP: 320px"
3                runat="server"></asp:textbox><asp:label id="Label3" style="Z-INDEX: 103; LEFT: 208px; POSITION: absolute; TOP: 200px" runat="server"
4                Width="184px" Height="24px">以上部分打印</asp:label>
5            <!--endprint-->
2.2
实现部分控件的不打印
<style> @media Print { .noprint { DISPLAY: none }}
   </style>
<asp:textbox id="TextBox1" class="noprint" style="Z-INDEX: 105; LEFT: 160px; POSITION: absolute; TOP: 320px"

posted on 2006-07-10 10:16  小潘  阅读(538)  评论(0)    收藏  举报