• 打印


    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Print.aspx.cs" Inherits="AES.Web.Modules.Print" %>
    <!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 id="Head1" runat="server">    <title></title></head><body onload="Print()">    <form id="form1" runat="server">      </form>    <OBJECT ID="RSClientPrint" CLASSID="CLSID:5554DCB0-700B-498D-9B58-4E40E5814405" CODEBASE="/Modules/ClientPrint.ashx#Version=2009,100,1352,12" VIEWASTEXT></OBJECT>

        <script type="text/javascript" language="javascript">        function Print(oid, name) {            if (typeof RSClientPrint.Print == "undefined") {                alert("无法加载客户端打印控件。");                return;            }
                RSClientPrint.MarginLeft = 0;            RSClientPrint.MarginTop = 17;            RSClientPrint.MarginRight = 0;            RSClientPrint.MarginBottom = 10;
                RSClientPrint.PageHeight = 296.926;            RSClientPrint.PageWidth = 210.058;
                RSClientPrint.Culture = 2052;            RSClientPrint.UICulture = 2052;
                RSClientPrint.UseSingleRequest = true;            RSClientPrint.UseEmfPlus = true;
                //RSClientPrint.Print("\/Reserved.ReportViewerWebControl.axd", "Mode=true&ReportID=044cafde166a430ea6c12c431e278192&ControlID=58469354c6434b7799edf527277b293f&Culture=2052&UICulture=2052&ReportStack=1&OpType=PrintRequest", "测试文档")
                RSClientPrint.Print(rootPath + "\/Modules\/PageHandler.ashx", "<%=this.Url %>", "test");        }    </script></body></html>
  • 相关阅读:
    移动前端webApp开发点滴积累20140524
    做业务系统与公众产品的区别
    浅谈浏览器兼容性问题-(4)工具及调试
    浅谈浏览器兼容性问题-(3)他山之石整理
    浅谈浏览器兼容性问题-(2)本人解决方案理解与积累
    使用Using的注意事项
    [转]VMPlayer的Briged网络配置
    [转]移动互联网应用技术架构简介-Restful服务
    理解WCF中的Contracts
    [翻译]在ASP.NET Web API中通过OData支持查询和分页
  • 原文地址:https://www.cnblogs.com/yellowsail/p/1957651.html
Copyright © 2020-2023  润新知