zoukankan      html  css  js  c++  java
  • 打印

    <%@ 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>
  • 相关阅读:
    json转换字符串
    windows下Xshell远程访问虚拟机
    win7去箭头指令
    n核CPU为什么计算速度达不到单核n倍
    vim字符串的替换
    转发的别人的vim编码和终端编码的设置
    音频操作
    scanf函数
    文字常量区和栈区区别
    Linux 进程
  • 原文地址:https://www.cnblogs.com/yellowsail/p/1957651.html
Copyright © 2011-2022 走看看