1、html部分:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="rs_FilePrint.aspx.cs" Inherits="Web.rs_Manage.rs_PrintDownload.rs_FilePrint" %><!doctype html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE10" /><title></title><link href="../../css/base.css" type="text/css" rel="stylesheet"><link href="../../css/upload.css" type="text/css" rel="stylesheet"><link href="../../css/lvse/Outer_color.css" type="text/css" rel="stylesheet"><link href="../../css/mend.css" type="text/css" rel="stylesheet"><link href="../../css/color.css" type="text/css" rel="stylesheet"><script type="text/javascript" src="../../js/jquery-1.8.3.min.js"></script><script type="text/javascript" src="../../js/UploadBar2.js"></script></head><body><div  id="maskUpload"></div><div class="uploadContent clear"><%--  <div class="clear" id="sidebar-collapse"><div class="Statistics" style="height: 34px; position: relative; right: 76px;"><div style="position: absolute; right: 0; top: 0;" class="minWidth"><span class="stnumber" id="spanRoleName">00120125-李丽-投资公司会计</span><span></span></div></div></div>--%><input id="idDel" type="button" title="关闭" /><div class="sidebar ml5" id="sidebar" style="border: 1px solid #ccc;"><div class="bd" id="scroll_bd"><div class="top" id="bd"><ul class="nav nav-list" id="nav-list"><li class="parent_li" mark="1"><a href="javascript:void(0);"  class="parent_a" title=""><i class="icon-fifth"></i><span class="menu-text">入职资料</span><span class="icon-angle-down"></span></a><ul class="submenu"><li><a href="javascript:void(0);"  title="" data-msg='' filecount="1" filetype="22" filedes="入职资料->面试简历表"><small class="icon-left"><img src="../../img/icon1.jpg"></small>面试简历表<span class="arrow2"></span></a></li><li><a href="javascript:void(0);"  title="" data-msg='' filecount="1" filetype="9" filedes="入职资料->入职登记表"><small class="icon-left"><img src="../../img/icon1.jpg"></small>入职登记表<span class="arrow2"></span></a></li><li><a href="javascript:void(0);"  title="" data-msg='' filecount="1" filetype="30" filedes="入职资料->入职面谈表"><small class="icon-left"><img src="../../img/icon1.jpg"></small>入职面谈表<span class="arrow2"></span></a></li><li><a href="javascript:void(0);"  title="" data-msg='' filecount="n" filetype="23" filedes="入职资料->岗位职责"><small class="icon-left"><img src="../../img/icon1.jpg"></small>岗位职责<span class="arrow2"></span></a></li><li><a href="javascript:void(0);"  title="" data-msg='' filecount="10-max" filetype="13" filedes="入职资料->劳动合同"><small class="icon-left"><img src="../../img/icon1.jpg"></small>劳动合同<span class="arrow2"></span></a></li><li><a href="javascript:void(0);"  title="" data-msg='' filecount="3" filetype="14" filedes="入职资料->保密协议"><small class="icon-left"><img src="../../img/icon1.jpg"></small>保密协议<span class="arrow2"></span></a></li><!--  --------------------------------------------------------------------------------------------------------------------  --><li><a href="javascript:void(0);"  title="" data-msg='' filecount="1" filetype="15" filedes="入职资料->员工背景调查表"><small class="icon-left"><img src="../../img/icon1.jpg"></small>员工背景调查表<span class="arrow2"></span></a></li><li class="last"><a href="javascript:void(0);"  title="" data-msg='' filecount="1" filetype="34" filedes="入职资料->放弃社保证明"><small class="icon-left"><img src="../../img/icon1.jpg"></small>放弃社保证明<span class="arrow2"></span></a></li></ul><div class="line"></div></li><li class="parent_li" mark="2"><a href="javascript:void(0);"  class="parent_a" title=""><i class="icon-fifth"></i><span class="menu-text">转正资料</span><span class="icon-angle-down"></span></a><ul class="submenu"><li  class="last"><a href="javascript:void(0);"  title="" data-msg='' filecount="2" filetype="24" filedes="转正资料->转正申请表"><small class="icon-left"><img src="../../img/icon1.jpg"></small>转正申请表<span class="arrow2"></span></a></li><li><a href="javascript:void(0);"  title="" data-msg='' filecount="1" filetype="26" filedes="转正资料->转正面谈表"><small class="icon-left"><img src="../../img/icon1.jpg"></small>转正面谈表<span class="arrow2"></span></a></li><%--<li><a href="javascript:void(0);"  title="" data-msg='' filecount="1" filetype="31" filedes="转正资料->延期通知单"><small class="icon-left"><img src="../../img/icon1.jpg"></small>延期通知单<span class="arrow2"></span></a></li>--%></ul><div class="line"></div></li><li class="parent_li" mark="3"><a href="javascript:void(0);"  class="parent_a" title=""><i class="icon-fifth"></i><span class="menu-text">调职办理</span><span class="icon-angle-down"></span></a><ul class="submenu"><li class="last"><a href="javascript:void(0);"  title="" data-msg='' filecount="n" filetype="29" filedes="调职办理->调职申请表"><small class="icon-left"><img src="../../img/icon1.jpg"></small>调职申请表<span class="arrow2"></span></a></li><%--<li class="last"><a href="javascript:void(0);"  title="" data-msg='' filecount="n" filetype="36" filedes="调职办理->调职岗位职责"><small class="icon-left"><img src="../../img/icon1.jpg"></small>调职岗位职责<span class="arrow2"></span></a></li>--%></ul><div class="line"></div></li><li class="parent_li" mark="4"><a href="javascript:void(0);"  class="parent_a" title=""><i class="icon-fifth"></i><span class="menu-text">调薪办理</span><span class="icon-angle-down"></span></a><ul class="submenu"><li class="last"><a href="javascript:void(0);"  title="" data-msg='' filecount="n" filetype="25" filedes="调薪办理->调薪申请表"><small class="icon-left"><img src="../../img/icon1.jpg"></small>调薪申请表<span class="arrow2"></span></a></li></ul><div class="line"></div></li><li class="parent_li" mark="5"><a href="javascript:void(0);"  class="parent_a" title=""><i class="icon-fifth"></i><span class="menu-text">离职办理</span><span class="icon-angle-down"></span></a><ul class="submenu"><li><a href="javascript:void(0);"  title="" data-msg='' filecount="1" filetype="27" filedes="离职办理->离职申请表"><small class="icon-left"><img src="../../img/icon1.jpg"></small>离职申请表<span class="arrow2"></span></a></li><li  class="last"><a href="javascript:void(0);"  title="" data-msg='' filecount="1" filetype="20" filedes="离职办理->工作交接"><small class="icon-left"><img src="../../img/icon1.jpg"></small>工作交接<span class="arrow2"></span></a></li><li><a href="javascript:void(0);"  title="" data-msg='' filecount="1" filetype="32" filedes="离职办理->离职面谈表"><small class="icon-left"><img src="../../img/icon1.jpg"></small>离职面谈表<span class="arrow2"></span></a></li><%--<li><a href="javascript:void(0);"  title="" data-msg='' filecount="1" filetype="38" filedes="离职办理->离职声明"><small class="icon-left"><img src="../../img/icon1.jpg"></small>离职声明<span class="arrow2"></span></a></li><li class="last"><a href="javascript:void(0);"  title="" data-msg='' filecount="1" filetype="33" filedes="离职办理->特殊离职资料"><small class="icon-left"><img src="../../img/icon1.jpg"></small>特殊离职资料<span class="arrow2"></span></a></li>--%></ul><div class="line"></div></li><li class="parent_li" mark="6"><a href="javascript:void(0);"  class="parent_a" title=""><i class="icon-fifth"></i><span class="menu-text">合同续签</span><span class="icon-angle-down"></span></a><ul class="submenu"><li  class="last"><a href="javascript:void(0);"  title="" data-msg='' filecount="n" filetype="37" filedes="合同续签->劳动合同续签"><small class="icon-left"><img src="../../img/icon1.jpg"></small>劳动合同续签<span class="arrow2"></span></a></li></ul><div class="line"></div></li></ul></div><div class="scroll" id="scroll"><p id="p"></p></div></div></div><div class="main-content2 clear" style="position: relative;">
<%--            <div class="printRemark" style="position: absolute; left: 0px; top: 60px;"><p class="darkB">备注:打印页面根据实际打印预览设计</p></div>--%><div class="printImg" style="width: 945px;"><object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="945" height="99%"><param name="SRC" value=""><param name="movie" value="TestPZ.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque"><embed id="pdfUrl" width="945" height="99%"  fullscreen="yes"></embed><%-- src="../../rs_Model/劳动合同-修.pdf"--%></object></div></div><input type="hidden" id="hidPicWebserviceRetValue" /><input type="hidden" id="hidPdfUrl" /><input type="hidden" id="hidFiletypeValue" /></div>
</body>
<script src="../../js/rxued.js"></script>
<script src="../../js/scrollimgplus.js"></script>
<script src="~/js/index.js"></script>
<script>window.onload=function() {//rxued.iframe.autoHeight2('ifmUpload',0);//alert($(window).height());$(".printImg").css('height', $(window).height() + 'px');$("#ifmUpload", parent.document).css('height', '100%');};parent.$(window).resize(function() {$(".printImg").css('height', $(window).height() + 'px');$("#ifmUpload", parent.document).css('height', '100%');});$(function () {//点击左侧菜单导航事件$("a[filetype]").click(function () {//资料类型var filetp = $(this).attr("filetype");//if (filetp == "23") {//alert("暂无此文档,等待升级...");//return;//}
$("#hidFiletypeValue").val(filetp);$("#spanFileDes").html($(this).attr("fileDes"));GetFilesByFileType(filetp);//更换资料的标准图//$("#imgBiaoZhun").attr("src","../../img/FileBiaoZhun/File_" + filetp);
});//定位到资料的大项$("li.parent_li").each(function () {if ($(this).attr('mark') == '<%=FileCate%>') {$(this).addClass('active');}else{$(this).removeClass('active');}});//$(window).resize(function() {//ReCtorPdfFiles();//});//定位到具体的资料细项且触发细项的click事件;注:trigger('click')的监听事件必须定义在trigger触发器之前$(".submenu li").each(function () {if ($(this).find('a[filetype]').attr('filetype') == '<%=FileType%>') {$(this).addClass('active2');$(this).find('a[filetype]').trigger('click');}else{$(this).removeClass('active2');}});$("#spanRoleName").html('<%=UserInfo%>');$("#idDel").click(function () {if ('<%= IsClose%>' == "true") {window.close();}else $("#uploadContent,#mask0", parent.document).hide();});});</script>
<script>//获取资料图片数据
function GetFilesByFileType(fileType) {var _url = "";//面试试岗时打印if ('<%= Phone%>' != "-") {if (fileType == "22") {_url= "rs_FilePrintHandler.ashx?type=getFilesUrl&phone=" + '<%= Phone %>' + "&fileType=" +fileType;}else{alert("只能打印面试简历表");return;}}else{_url= "rs_FilePrintHandler.ashx?type=getFilesUrl&u_KaHao=" + '<%= UKaHao %>' + "&fileType=" + fileType + "&CheckboxValues=" + '<%= CheckboxValues %>';}$('#maskUpload').show();$.ajax({type:"POST",url: _url,success: function (msg) {if (msg.split('|')[0] == "0")alert("转换失败,未找到相应的word文档");var html ="<object classid='clsid:CA8A9780-280D-11CF-A24D-444553540000' width='945' height='99%'>" +"<param name='SRC' value='" + msg + "'>" +"<param name='movie' value='TestPZ.swf' />" +"<param name='quality' value='high' />" +"<param name='wmode' value='opaque'>" +"<embed id='pdfUrl' width='945' height='99%' src='" + msg + "' fullscreen='yes'></embed></object>";$(".printImg").html(html);$("#hidPdfUrl").val(msg);$('#maskUpload').hide();},error: function (msg) {//alert(msg);$('#maskUpload').hide();}});}//窗口发生变化时,重新构造pdf文件并计算高度//function ReCtorPdfFiles() {//var msg = $("#hidPdfUrl").val();//var html = "<object classid='clsid:CA8A9780-280D-11CF-A24D-444553540000' width='945' height='90%'>" +//"<param name='SRC' value='" + msg + "'>" +//"<embed id='pdfUrl' width='945' height='90%' src='" + msg + "' fullscreen='yes'></embed></object>";//$(".printImg").html(html);//}</script>
</html>

View Code

2、一般处理程序

usingSystem;usingSystem.Collections.Generic;usingSystem.Data;usingSystem.Linq;usingSystem.Web;usingSystem.Web.UI;usingMicrosoft.Office.Interop.Word;usingPrint2Flash3;namespaceWeb.rs_Manage.rs_PrintDownload
{/// <summary>///rs_FilePrintHandler 的摘要说明/// </summary>public classrs_FilePrintHandler : IHttpHandler{public voidProcessRequest(HttpContext context){context.Response.ContentType= "text/plain;charset=utf-8";context.Response.Charset= "utf-8";context.Response.ContentEncoding= System.Text.Encoding.GetEncoding("utf-8");var strReturn = DataSource(context, context.Request.QueryString["type"]);context.Response.Write(strReturn); }private static string DataSource(HttpContext context, stringtype){try{stringretStr;switch(type){case "getFilesUrl": retStr = GetFilesUrl(context); break;case "getFilesUrlProgress": retStr = GetFilesUrlProgress(context); break;default: retStr = string.Empty; break;}returnretStr;}catch(Exception e){return "";}}private static stringGetFilesUrl(HttpContext context){try{var uKaHao = context.Request["u_KaHao"];var fileType = context.Request["fileType"];var url = string.Empty;var current =AppDomain.CurrentDomain.BaseDirectory;var fileName = "";WCFRsglServiceClientHelper rs= newWCFRsglServiceClientHelper();DataSet ds= Wps.Common.Util.CDataSet(rs.ExecuteSQLTwo(@"select u_xingming,u_shouji,u_xingbie,u_xueli,u_shigongzi,u_zhenggongzi,u_ruzhitime,u_zhuanzhengtime,u_diqu,u_bumen,u_zhiwu,u_qiritime,u_kahao,u_jibie,u_zhuangtai
from rsgl_UserList
where u_kahao='" + uKaHao + "'", "dsUser"));BiaoZhun biaozhun= newBiaoZhun();WordClass word= newWordClass();switch(fileType){case "25":case "29":{fileName= string.Format("员工调职、调薪审批表({0}).pdf", ds.Tables[0].Rows[0]["u_xingming"]);if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0){string diqu = biaozhun.GetOne("select dq_name from rsgl_diqu where dq_id=" + ds.Tables[0].Rows[0]["u_diqu"].ToString());string bumen = biaozhun.GetOne("select bm_name from rsgl_bumen where bm_id=" + ds.Tables[0].Rows[0]["u_bumen"].ToString());string zhiwu = biaozhun.GetOne("select zw_name from rsgl_zhiwu where zw_id=" + ds.Tables[0].Rows[0]["u_zhiwu"].ToString());var dic = new Dictionary<string, string>{{"name",ds.Tables[0].Rows[0]["u_xingming"].ToString()},{"kahao",ds.Tables[0].Rows[0]["u_kahao"].ToString()},//{"ruzhi",Convert.ToDateTime(ds.Tables[0].Rows[0]["u_ruzhitime"]).ToString("yyyy-MM-dd")},{"olddq",diqu},{"oldbm",bumen},{"oldzw",zhiwu},{"newgz2",Convert.ToDouble(ds.Tables[0].Rows[0]["u_zhenggongzi"]) > 0 ? ds.Tables[0].Rows[0]["u_zhenggongzi"].ToString() : ds.Tables[0].Rows[0]["u_shigongzi"].ToString()},{"oldgz",Convert.ToDouble(ds.Tables[0].Rows[0]["u_zhenggongzi"]) > 0 ? ds.Tables[0].Rows[0]["u_zhenggongzi"].ToString() : ds.Tables[0].Rows[0]["u_shigongzi"].ToString()}};url= current + "wordfile\\" +fileName;word.WordCopyToWpf(current+ "rs_Model\\员工调职、调薪审批表.doc", current + "wordfile\\员工调职、调薪审批表" + Guid.NewGuid() + ".doc", url, dic);}break;}case "24":{fileName= string.Format("员工转正审批表({0}).pdf", ds.Tables[0].Rows[0]["u_xingming"]);if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0){string diqu = biaozhun.GetOne("select dq_name from rsgl_diqu where dq_id=" + ds.Tables[0].Rows[0]["u_diqu"].ToString());string bumen = biaozhun.GetOne("select bm_name from rsgl_bumen where bm_id=" + ds.Tables[0].Rows[0]["u_bumen"].ToString());string zhiwu = biaozhun.GetOne("select zw_name from rsgl_zhiwu where zw_id=" + ds.Tables[0].Rows[0]["u_zhiwu"].ToString());var dic = new Dictionary<string, string>{{"name",ds.Tables[0].Rows[0]["u_xingming"].ToString()},//{"kahao",ds.Tables[0].Rows[0]["u_kahao"].ToString()},{"lianxifangshi",ds.Tables[0].Rows[0]["u_shouji"].ToString()},{"xingbie",ds.Tables[0].Rows[0]["u_xingbie"].ToString()},{"xueli",ds.Tables[0].Rows[0]["u_xueli"].ToString()},{"shiyongxinzi",ds.Tables[0].Rows[0]["u_shigongzi"].ToString()},{"ruzhiriqi",Convert.ToDateTime(ds.Tables[0].Rows[0]["u_qiritime"]).ToString("yyyy-MM-dd")},{"shigangriqi",Convert.ToDateTime(ds.Tables[0].Rows[0]["u_ruzhitime"]).ToString("yyyy-MM-dd")},//{"diqu1",diqu},{"diqu",diqu},{"bumen",bumen},{"zhiwu",zhiwu},//{"sj","0"},//{"bj","0"},//{"zt","0"},//{"kg","0"}
};url= current + "wordfile\\" +fileName;word.WordCopyToWpf(current+ "rs_Model\\员工转正审批表.doc", current + "wordfile\\员工转正审批表" + Guid.NewGuid() + ".doc", url, dic);}break;}case "9":{fileName= string.Format("员工入职登记表({0}).pdf", ds.Tables[0].Rows[0]["u_xingming"]);ds= Wps.Common.Util.CDataSet(rs.ExecuteSQLTwo(@"select u_xingming,u_xingbie,u_jiguan,u_mingzu,u_shouji,u_birthDay,u_hukouleixing,u_hunyin,u_diqu,u_bumen,u_zhiwu,u_xueli,'毕业时间','毕业院校',u_xianzhuzhi,u_xianyoubian,u_shenfenzhengdizhi,u_shenfenzheng,u_jjlianxiren,u_jjlxrguanxi,u_jjlxrdianhua,u_ruZhitime,u_shigongzi,u_youxiang,u_zhenggongzi from rsgl_userlist where u_kahao='" + uKaHao + "'", "dsUser_201408151500"));if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0){string diqu = biaozhun.GetOne("select dq_name from rsgl_diqu where dq_id=" + ds.Tables[0].Rows[0]["u_diqu"].ToString());string bumen = biaozhun.GetOne("select bm_name from rsgl_bumen where bm_id=" + ds.Tables[0].Rows[0]["u_bumen"].ToString());string zhiwu = biaozhun.GetOne("select zw_name from rsgl_zhiwu where zw_id=" + ds.Tables[0].Rows[0]["u_zhiwu"].ToString());var dic = new Dictionary<string, string>();dic.Add("diqu", diqu);dic.Add("bumen", bumen);dic.Add("zhiwu", zhiwu);dic.Add("kahao", uKaHao);dic.Add("name", ds.Tables[0].Rows[0]["u_xingming"].ToString());dic.Add("xingbie", ds.Tables[0].Rows[0]["u_xingbie"].ToString());dic.Add("jiguan", ds.Tables[0].Rows[0]["u_jiguan"].ToString());dic.Add("minzu", ds.Tables[0].Rows[0]["u_mingzu"].ToString());dic.Add("lianxifangshi", ds.Tables[0].Rows[0]["u_shouji"].ToString());//还没有完善基本信息,此信息为空//dic.Add("chushengnianyue", Convert.ToDateTime(ds.Tables[0].Rows[0]["u_birthDay"]).ToString("yyyy-MM-dd"));dic.Add("hukouleixing", ds.Tables[0].Rows[0]["u_hukouleixing"].ToString());dic.Add("hunfou", ds.Tables[0].Rows[0]["u_hunyin"].ToString());dic.Add("xueli", ds.Tables[0].Rows[0]["u_xueli"].ToString());dic.Add("xianzhuzhi", ds.Tables[0].Rows[0]["u_xianzhuzhi"].ToString());dic.Add("shenfenzhengdizhi", ds.Tables[0].Rows[0]["u_shenfenzhengdizhi"].ToString());dic.Add("shenfenzhenghao", ds.Tables[0].Rows[0]["u_shenfenzheng"].ToString());dic.Add("dangdilianxiren", ds.Tables[0].Rows[0]["u_jjlianxiren"].ToString());dic.Add("lianxirenguanxi", ds.Tables[0].Rows[0]["u_jjlxrguanxi"].ToString());dic.Add("lianxirendianhuan", ds.Tables[0].Rows[0]["u_jjlxrdianhua"].ToString());dic.Add("shigangriqi", Convert.ToDateTime(ds.Tables[0].Rows[0]["u_ruZhitime"]).ToString("yyyy-MM-dd"));dic.Add("shiyongxinzi", ds.Tables[0].Rows[0]["u_shigongzi"].ToString());dic.Add("zhuanzhengxinzi", ds.Tables[0].Rows[0]["u_zhenggongzi"].ToString());dic.Add("email", ds.Tables[0].Rows[0]["u_youxiang"].ToString());url= current + "wordfile\\" +fileName;word.WordCopyToWpf(current+ "rs_Model\\员工入职登记表.doc", current + "wordfile\\员工入职登记表" + Guid.NewGuid() + ".doc", url, dic);}break;}case "22":{fileName= string.Format("面试简历表修({0}).pdf", "");var dic = new Dictionary<string, string>();var phone = context.Request["phone"];if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0){phone= ds.Tables[0].Rows[0]["u_shouji"].ToString();}#region 拾取面试信息string sql = string.Format(@"select [id], msname,mssex,mszhiwei,msipone,msemail,msyytime,mssgtime,msDepart,msKahao,msResult,msPingYu,msScore,msRsUpLoadWord,msXinliScore
,dq_name ,ISNULL(b.bm_name,a.bm_name) bm_name
from rsgl_MianShiUser
left join rsgl_diqu on dq_id=rsgl_MianShiUser.tb_diqu
left join rsgl_bumen a on a.bm_id=msDepart
left join rsgl_buMen b on a.bm_liShu=b.bm_id and b.bm_jiBie=2
where [msipone]='{0}'", phone);DataTable dt= WCFRsglServiceClientHelper.Instance.GetDataByExecuteSql(sql);//【Y】if (dt != null && dt.Rows.Count > 0){string dqName = Convert.ToString(dt.Rows[0]["dq_name"]);string msZhiwu = Convert.ToString(dt.Rows[0]["mszhiwei"]);string msBumen = Convert.ToString(dt.Rows[0]["bm_name"]);string msName = Convert.ToString(dt.Rows[0]["msname"]);string msPhone = Convert.ToString(dt.Rows[0]["msipone"]);string msTime = DateTime.Parse(dt.Rows[0]["msyytime"].ToString()).ToString("yyyy/MM/dd");#region 简历填写信息    登记表DataTable dtJL= null;WCFRsglServiceClientHelper rsWCF= newWCFRsglServiceClientHelper();string strSQL =string.Format("select * from rsgl_Jianli where jl_shouji='{0}' and jl_jincheng=0",phone);DataSet ds1= Wps.Common.Util.CDataSet(rsWCF.ExecuteSQLTwo(strSQL, "H_jianli_Look_002"));if (ds1 != null && ds1.Tables.Count > 0){dtJL= ds1.Tables[0];}if (dtJL != null && dtJL.Rows.Count > 0){string[] testcontent = new string[74];string[] testTableremarks ={"cell_5", "cell_6", "cell_7", "cell_8", "cell_9","cell_10", "cell_11", "cell_12", "cell_13", "cell_14", "cell_15", "cell_16","cell_17", "cell_18", "cell_19", "cell_20", "cell_21", "cell_74", "cell_23","cell_24", "cell_25", "cell_26", "cell_27", "cell_28", "cell_29", "cell_30","cell_31", "cell_32", "cell_33", "cell_34", "cell_35", "cell_36", "cell_37","cell_38", "cell_39", "cell_40", "cell_41", "cell_42", "cell_43", "cell_44","cell_45", "cell_46", "cell_47", "cell_48", "cell_49", "cell_50", "cell_51","cell_52", "cell_53", "cell_54", "cell_55", "cell_56", "cell_57", "cell_58","cell_59", "cell_60", "cell_61", "cell_62", "cell_63", "cell_64", "cell_65","cell_66", "cell_67", "cell_68", "cell_69", "cell_1", "cell_2", "cell_3","cell_4", "cell_70", "cell_71", "cell_72", "cell_73", "cell_75"};string xingBie = string.Empty;DataRow row= dtJL.Rows[0];fileName= string.Format("面试简历表(含面试考评表)({0}).pdf", row["jl_xingming"]);string jlID = Convert.ToString(row["jl_ID"]); //GUIDxingBie = Convert.ToString(row["jl_xingbie"]).Equals("0") ? "" : "";string hunyin = Convert.ToString(row["jl_hunyin"]).Equals("0") ? "已婚" : "";#region 基本信息  0  ~  18testcontent[0] = Convert.ToString(row["jl_xingming"]);testcontent[1] =xingBie;testcontent[2] = Convert.ToString(row["jl_birthDay"]); //3testcontent[3] = Convert.ToString(row["jl_jiguan"]);testcontent[4] =hunyin;testcontent[5] = Convert.ToString(row["jl_shouji"]); //6testcontent[6] = Convert.ToString(row["jl_qiwangGongzi"]);testcontent[7] = Convert.ToString(row["jl_xueli"]);testcontent[8] = Convert.ToString(row["jl_Email"]); //9testcontent[9] = Convert.ToString(row["jl_workTime"]);testcontent[10] = Convert.ToString(row["jl_zhuanye"]);testcontent[11] = Convert.ToString(row["jl_IDCode"]); //12testcontent[12] = Convert.ToString(row["jl_daogangTime"]);testcontent[13] = Convert.ToString(row["jl_jjlianxiren"]);testcontent[14] = Convert.ToString(row["jl_jjlxrdianhua"]);testcontent[15] = Convert.ToString(row["jl_IDAddr"]);testcontent[16] = Convert.ToString(row["jl_xianzhuzhi"]);testcontent[17] = Convert.ToString(row["jl_ziwopingjia"]);testcontent[18] = Convert.ToString(row["jl_jinengAihao"]);#endregion#region 家庭成员 19  ~  26strSQL= string.Format("select * from rsgl_JianliHome where jl_id='{0}'", jlID);ds1= Wps.Common.Util.CDataSet(rsWCF.ExecuteSQLTwo(strSQL, "H_jianli_Look_003"));DataTable dtHome= null;if (ds1 != null && ds1.Tables.Count > 0){dtHome= ds1.Tables[0];}if (dtHome != null && dtHome.Rows.Count > 0){DataRow rowHome= dtHome.Rows[0];testcontent[19] = Convert.ToString(rowHome["lxr_xingming"]); //姓名testcontent[20] = Convert.ToString(rowHome["lxr_guanxi"]); //关系testcontent[21] = Convert.ToString(rowHome["lxr_workMore"]); //工作单位及职务testcontent[22] = Convert.ToString(rowHome["lxr_phone"]); //联系电话if (dtHome.Rows.Count >= 2){DataRow rowHome2= dtHome.Rows[1];testcontent[23] = Convert.ToString(rowHome2["lxr_xingming"]); //姓名2testcontent[24] = Convert.ToString(rowHome2["lxr_guanxi"]); //关系2testcontent[25] = Convert.ToString(rowHome2["lxr_workMore"]); //工作单位及职务2testcontent[26] = Convert.ToString(rowHome2["lxr_phone"]); //联系电话2
}else{testcontent[23] = string.Empty;testcontent[24] = string.Empty;testcontent[25] = string.Empty;testcontent[26] = string.Empty;}}else{testcontent[19] = string.Empty;testcontent[20] = string.Empty;testcontent[21] = string.Empty;testcontent[22] = string.Empty;testcontent[23] = string.Empty;testcontent[24] = string.Empty;testcontent[25] = string.Empty;testcontent[26] = string.Empty;}#endregion#region 工作经历  27  ~  42strSQL= string.Format("select * from rsgl_JianliWork where jl_id='{0}'", jlID);ds1= Wps.Common.Util.CDataSet(rsWCF.ExecuteSQLTwo(strSQL, "H_jianli_Look_003"));DataTable dtWork= null;if (ds1 != null && ds1.Tables.Count > 0){dtWork= ds1.Tables[0];}if (dtWork != null && dtWork.Rows.Count > 0){//第一份工作经历DataRow rowWork = dtWork.Rows[0];testcontent[27] = Convert.ToString(rowWork["work_gongzuoTime"]); //起止时间testcontent[28] = Convert.ToString(rowWork["work_GSName"]); //公司名称testcontent[29] = Convert.ToString(rowWork["work_guimo"]); //规模(人)testcontent[30] = Convert.ToString(rowWork["work_gangwei"]); //工作岗位testcontent[31] = Convert.ToString(rowWork["work_xinzi"]); //薪资待遇testcontent[32] = Convert.ToString(rowWork["work_zhengmingren"]); //证明人及电话testcontent[33] = Convert.ToString(rowWork["work_lizhiYuanyin"]); //离职原因#region  //work_HavDiaocha 0是,1否//checkRBTN = Convert.ToString(rowWork["work_HavDiaocha"]).Equals("0") ? true : false;#endregiontestcontent[34] = Convert.ToString(rowWork["work_Neirong"]);//工作内容 -------------------------------------第一份工作经历endif (dtWork.Rows.Count >= 2){//第二份工作经历DataRow rowWork2 = dtWork.Rows[1];testcontent[35] = Convert.ToString(rowWork2["work_gongzuoTime"]); //起止时间testcontent[36] = Convert.ToString(rowWork2["work_GSName"]); //公司名称testcontent[37] = Convert.ToString(rowWork2["work_guimo"]); //规模(人)testcontent[38] = Convert.ToString(rowWork2["work_gangwei"]); //工作岗位testcontent[39] = Convert.ToString(rowWork2["work_xinzi"]); //薪资待遇testcontent[40] = Convert.ToString(rowWork2["work_zhengmingren"]); //证明人及电话testcontent[41] = Convert.ToString(rowWork2["work_lizhiYuanyin"]); //离职原因#region  //work_HavDiaocha 0是,1否//checkRBTN = Convert.ToString(rowWork2["work_HavDiaocha"]).Equals("0") ? true : false;#endregiontestcontent[42] = Convert.ToString(rowWork2["work_Neirong"]);//工作内容-------------------------------------第二份工作经历end
}else{testcontent[35] = string.Empty;testcontent[36] = string.Empty;testcontent[37] = string.Empty;testcontent[38] = string.Empty;testcontent[39] = string.Empty;testcontent[40] = string.Empty;testcontent[41] = string.Empty;testcontent[42] = string.Empty;}}else{testcontent[27] = string.Empty;testcontent[28] = string.Empty;testcontent[29] = string.Empty;testcontent[30] = string.Empty;testcontent[31] = string.Empty;testcontent[32] = string.Empty;testcontent[33] = string.Empty;testcontent[34] = string.Empty;testcontent[35] = string.Empty;testcontent[36] = string.Empty;testcontent[37] = string.Empty;testcontent[38] = string.Empty;testcontent[39] = string.Empty;testcontent[40] = string.Empty;testcontent[41] = string.Empty;testcontent[42] = string.Empty;}#endregion#region 教育经历  &  培训记录   43  ~   62strSQL= string.Format("select * from rsgl_JianliSchool where jl_id='{0}'", jlID);ds1= Wps.Common.Util.CDataSet(rsWCF.ExecuteSQLTwo(strSQL, "H_jianli_Look_004"));DataTable dtSchool= null;if (ds1 != null && ds1.Tables.Count > 0){dtSchool= ds1.Tables[0];}if (dtSchool != null && dtSchool.Rows.Count > 0){#region 教育经历DataRow[] rowsJY= dtSchool.Select("school_Type=0");if (rowsJY != null && rowsJY.Length > 0){testcontent[43] = Convert.ToString(rowsJY[0]["school_stratTime"]); //起止时间  起testcontent[44] = Convert.ToString(rowsJY[0]["school_endTime"]); //起止时间    止testcontent[45] = Convert.ToString(rowsJY[0]["school_Name"]); //学校名称testcontent[46] = Convert.ToString(rowsJY[0]["school_zhengshu"]); //所获证书testcontent[47] = Convert.ToString(rowsJY[0]["school_zhengmingren"]);//证明人及电话if (rowsJY.Length >= 2){testcontent[48] = Convert.ToString(rowsJY[1]["school_stratTime"]);//起止时间2     起testcontent[49] = Convert.ToString(rowsJY[1]["school_endTime"]);//起止时间2          止testcontent[50] = Convert.ToString(rowsJY[1]["school_Name"]); //学校名称2testcontent[51] = Convert.ToString(rowsJY[1]["school_zhengshu"]);//所获证书2testcontent[52] = Convert.ToString(rowsJY[1]["school_zhengmingren"]);//证明人及电话2
}else{testcontent[48] = string.Empty;testcontent[49] = string.Empty;testcontent[50] = string.Empty;testcontent[51] = string.Empty;testcontent[52] = string.Empty;}}else{testcontent[43] = string.Empty;testcontent[44] = string.Empty;testcontent[45] = string.Empty;testcontent[46] = string.Empty;testcontent[47] = string.Empty;testcontent[48] = string.Empty;testcontent[49] = string.Empty;testcontent[50] = string.Empty;testcontent[51] = string.Empty;testcontent[52] = string.Empty;}#endregion#region 培训记录DataRow[] rowsPX= dtSchool.Select("school_Type=1");if (rowsPX != null && rowsPX.Length > 0){testcontent[53] = Convert.ToString(rowsPX[0]["school_stratTime"]); //起止时间  起testcontent[54] = Convert.ToString(rowsPX[0]["school_endTime"]); //起止时间    止testcontent[55] = Convert.ToString(rowsPX[0]["school_Name"]); //学校名称testcontent[56] = Convert.ToString(rowsPX[0]["school_zhengshu"]); //所获证书testcontent[57] = Convert.ToString(rowsPX[0]["school_zhengmingren"]);//证明人及电话if (rowsPX.Length >= 2){testcontent[58] = Convert.ToString(rowsPX[1]["school_stratTime"]);//起止时间2     起testcontent[59] = Convert.ToString(rowsPX[1]["school_endTime"]);//起止时间2          止testcontent[60] = Convert.ToString(rowsPX[1]["school_Name"]); //学校名称2testcontent[61] = Convert.ToString(rowsPX[1]["school_zhengshu"]);//所获证书2testcontent[62] = Convert.ToString(rowsPX[1]["school_zhengmingren"]);//证明人及电话2
}else{testcontent[58] = string.Empty;testcontent[59] = string.Empty;testcontent[60] = string.Empty;testcontent[61] = string.Empty;testcontent[62] = string.Empty;}}else{testcontent[53] = string.Empty;testcontent[54] = string.Empty;testcontent[55] = string.Empty;testcontent[56] = string.Empty;testcontent[57] = string.Empty;testcontent[58] = string.Empty;testcontent[59] = string.Empty;testcontent[60] = string.Empty;testcontent[61] = string.Empty;testcontent[62] = string.Empty;}#endregion}else{testcontent[43] = string.Empty;testcontent[44] = string.Empty;testcontent[45] = string.Empty;testcontent[46] = string.Empty;testcontent[47] = string.Empty;testcontent[48] = string.Empty;testcontent[49] = string.Empty;testcontent[50] = string.Empty;testcontent[51] = string.Empty;testcontent[52] = string.Empty;testcontent[53] = string.Empty;testcontent[54] = string.Empty;testcontent[55] = string.Empty;testcontent[56] = string.Empty;testcontent[57] = string.Empty;testcontent[58] = string.Empty;testcontent[59] = string.Empty;testcontent[60] = string.Empty;testcontent[61] = string.Empty;testcontent[62] = string.Empty;}#endregiontestcontent[63] = Convert.ToString(row["jl_ljgstj"]); //从何途径了解到公司testcontent[64] = Convert.ToString(row["jl_diyiYinxiang"]); //您对公司的第一印象
testcontent[65] =dqName;testcontent[66] =msZhiwu;testcontent[67] =msBumen;testcontent[68] =msTime;testcontent[69] =msName;testcontent[70] =msZhiwu;testcontent[71] =msPhone;testcontent[72] =msTime;#region 获取心理测试,专业测试分数  17 & 73testcontent[17] = H_xinliCS(dt.Rows[0]["msXinliScore"]);string msScore = Convert.ToString(dt.Rows[0]["msScore"]);testcontent[73] = string.IsNullOrEmpty(msScore) ? "未参加上机答题" : string.Format("{0}分", dt.Rows[0]["msScore"]);#endregion//将信息填充至键值对中for (var i = 0; i < testTableremarks.Length; i++){dic.Add(testTableremarks[i], testcontent[i]);}}#endregion}#endregionurl= current + "wordfile\\" +fileName;word.WordCopyToWpf(current+ "rs_Model\\面试简历表修.doc", current + "wordfile\\面试简历表修" + Guid.NewGuid() + ".doc", url, dic);break;}case "13":case "37":{fileName= string.Format("劳动合同({0}).pdf", ds.Tables[0].Rows[0]["u_xingming"]);if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0){string bumen = biaozhun.GetOne("select bm_name from rsgl_bumen where bm_id=" + ds.Tables[0].Rows[0]["u_bumen"].ToString());string zhiwu = biaozhun.GetOne("select zw_name from rsgl_zhiwu where zw_id=" + ds.Tables[0].Rows[0]["u_zhiwu"].ToString());var dic = new Dictionary<string, string>();dic.Add("myName", ds.Tables[0].Rows[0]["u_xingming"].ToString());dic.Add("myDepartment", bumen);dic.Add("myPostName", zhiwu);url= current + "wordfile\\" +fileName;word.WordCopyToWpf(current+ "rs_Model\\劳动合同-修.docx", current + "wordfile\\劳动合同-修" + Guid.NewGuid() + ".docx", url, dic);}break;}case "20":{fileName= string.Format("工作交接表({0}).pdf", ds.Tables[0].Rows[0]["u_xingming"]);if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0){string juese = biaozhun.GetOne("select js_name from rsgl_juese where js_id =" + ds.Tables[0].Rows[0]["u_jibie"].ToString());string bumen = biaozhun.GetOne("select bm_name from rsgl_bumen where bm_id=" + ds.Tables[0].Rows[0]["u_bumen"].ToString());string diqu = biaozhun.GetOne("select dq_name from rsgl_diqu where dq_id=" + ds.Tables[0].Rows[0]["u_diqu"].ToString());var dic = new Dictionary<string, string>();dic.Add("xingming", ds.Tables[0].Rows[0]["u_xingming"].ToString());dic.Add("diqu", diqu);dic.Add("bumen", bumen);dic.Add("juese", juese);dic.Add("kahao", uKaHao);url= current + "wordfile\\" +fileName;word.WordCopyToWpf(current+ "rs_Model\\工作交接表.doc", current + "wordfile\\工作交接表" + Guid.NewGuid() + ".doc", url, dic);}break;}case "34":{//不需向word中插入数据fileName = string.Format("放弃社保证明({0}).pdf", ds.Tables[0].Rows[0]["u_xingming"]);if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0){word.CreateNewDocument(current+ "rs_Model\\放弃社保证明.doc");url= current + "wordfile\\" +fileName;word.WordCopyToWpf(current+ "rs_Model\\放弃社保证明.doc", current + "wordfile\\放弃社保证明" + Guid.NewGuid() + ".doc", url, null);}break;}case "14":{fileName= string.Format("保守商业秘密协议({0}).pdf", ds.Tables[0].Rows[0]["u_xingming"]);if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0){string bumen = biaozhun.GetOne("select bm_name from rsgl_bumen where bm_id=" + ds.Tables[0].Rows[0]["u_bumen"].ToString());string zhiwu = biaozhun.GetOne("select zw_name from rsgl_zhiwu where zw_id=" + ds.Tables[0].Rows[0]["u_zhiwu"].ToString());var dic = new Dictionary<string, string>();dic.Add("myName", ds.Tables[0].Rows[0]["u_xingming"].ToString());dic.Add("myDepartment", bumen);dic.Add("myPostName", zhiwu);url= current + "wordfile\\" +fileName;word.WordCopyToWpf(current+ "rs_Model\\保守商业秘密协议.doc", current + "wordfile\\保守商业秘密协议" + Guid.NewGuid() + ".doc", url, dic);}break;}case "21":case "27":{fileName= string.Format("员工离职申请表(含解除劳动合同协议书及工作交接表)({0}).pdf", ds.Tables[0].Rows[0]["u_xingming"]);string diqu = biaozhun.GetOne("select dq_name from rsgl_diqu where dq_id=" + ds.Tables[0].Rows[0]["u_diqu"].ToString());string bumen = biaozhun.GetOne("select bm_name from rsgl_bumen where bm_id=" + ds.Tables[0].Rows[0]["u_bumen"].ToString());string zhiwu = biaozhun.GetOne("select zw_name from rsgl_zhiwu where zw_id=" + ds.Tables[0].Rows[0]["u_zhiwu"].ToString());var dic = new Dictionary<string, string>();dic.Add("name", ds.Tables[0].Rows[0]["u_xingming"].ToString());dic.Add("bumen", bumen);dic.Add("zhiwu", zhiwu);dic.Add("ruzhi", Convert.ToDateTime(ds.Tables[0].Rows[0]["u_ruzhitime"]).ToString("yyyy-MM-dd"));dic.Add("shouji", ds.Tables[0].Rows[0]["u_shouji"].ToString());dic.Add("zhuangtai", ds.Tables[0].Rows[0]["u_zhuangtai"].ToString() == "3" ? "" : "");dic.Add("kahao", ds.Tables[0].Rows[0]["u_kahao"].ToString());dic.Add("rs_kahao", ds.Tables[0].Rows[0]["u_kahao"].ToString());dic.Add("rs_diqu", diqu);dic.Add("rs_bumen", bumen);dic.Add("rs_zhiwu", zhiwu);dic.Add("rs_xingming", ds.Tables[0].Rows[0]["u_xingming"].ToString());url= current + "wordfile\\" +fileName;if (Convert.ToString(ds.Tables[0].Rows[0]["u_jibie"]) == "54" || Convert.ToString(ds.Tables[0].Rows[0]["u_jibie"]) == "55"){word.WordCopyToWpf(current+ "rs_Model\\员工离职申请表(含解除劳动合同协议书及工作交接表(财务)).doc", current + "wordfile\\员工离职申请表(含解除劳动合同协议书及工作交接表(财务))" + Guid.NewGuid() + ".doc", url, dic);}else{word.WordCopyToWpf(current+ "rs_Model\\员工离职申请表(含解除劳动合同协议书及工作交接表(非财务)).doc", current + "wordfile\\员工离职申请表(含解除劳动合同协议书及工作交接表(非财务))" + Guid.NewGuid() + ".doc", url, dic);}break;}case "30":{fileName= string.Format("员工入职面谈记录表({0}).pdf", ds.Tables[0].Rows[0]["u_xingming"]);if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0){string diqu = biaozhun.GetOne("select dq_name from rsgl_diqu where dq_id=" + ds.Tables[0].Rows[0]["u_diqu"].ToString());string bumen = biaozhun.GetOne("select bm_name from rsgl_bumen where bm_id=" + ds.Tables[0].Rows[0]["u_bumen"].ToString());string zhiwu = biaozhun.GetOne("select zw_name from rsgl_zhiwu where zw_id=" + ds.Tables[0].Rows[0]["u_zhiwu"].ToString());var dic = new Dictionary<string, string>();dic.Add("name", ds.Tables[0].Rows[0]["u_xingming"].ToString());dic.Add("diqu", diqu);dic.Add("bumen", bumen);dic.Add("zhiwu", zhiwu);dic.Add("ruzhi", Convert.ToDateTime(ds.Tables[0].Rows[0]["u_ruzhitime"].ToString()).ToString("yyyy-MM-dd"));dic.Add("zhuanheng", Convert.ToDateTime(ds.Tables[0].Rows[0]["u_zhuanzhengtime"]).ToString("yyyy-MM-dd"));dic.Add("shigongzi", ds.Tables[0].Rows[0]["u_shigongzi"].ToString());dic.Add("zhenggongzi", ds.Tables[0].Rows[0]["u_zhenggongzi"].ToString());dic.Add("kahao", uKaHao);url= current + "wordfile\\" +fileName;word.WordCopyToWpf(current+ "rs_Model\\员工入职面谈记录表.doc", current + "wordfile\\员工入职面谈记录表" + Guid.NewGuid() + ".doc", url, dic);}break;}case "26":{fileName= string.Format("员工转正面谈记录表({0}).pdf", ds.Tables[0].Rows[0]["u_xingming"]);if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0){string diqu = biaozhun.GetOne("select dq_name from rsgl_diqu where dq_id=" + ds.Tables[0].Rows[0]["u_diqu"].ToString());string bumen = biaozhun.GetOne("select bm_name from rsgl_bumen where bm_id=" + ds.Tables[0].Rows[0]["u_bumen"].ToString());string zhiwu = biaozhun.GetOne("select zw_name from rsgl_zhiwu where zw_id=" + ds.Tables[0].Rows[0]["u_zhiwu"].ToString());var dic = new Dictionary<string, string>();dic.Add("name", ds.Tables[0].Rows[0]["u_xingming"].ToString());dic.Add("diqu", diqu);dic.Add("bumen", bumen);dic.Add("zhiwu", zhiwu);dic.Add("ruzhi", Convert.ToDateTime(ds.Tables[0].Rows[0]["u_ruzhitime"].ToString()).ToString("yyyy-MM-dd"));dic.Add("zhuanheng", Convert.ToDateTime(ds.Tables[0].Rows[0]["u_zhuanzhengtime"]).ToString("yyyy-MM-dd"));//dic.Add("shigongzi", ds.Tables[0].Rows[0]["u_shigongzi"].ToString());dic.Add("zhenggongzi", ds.Tables[0].Rows[0]["u_zhenggongzi"].ToString());dic.Add("kahao", uKaHao);url= current + "wordfile\\" +fileName;word.WordCopyToWpf(current+ "rs_Model\\员工转正面谈记录表.doc", current + "wordfile\\员工转正面谈记录表" + Guid.NewGuid() + ".doc", url, dic);}break;}case "32":{var checkboxValues = context.Request["CheckboxValues"];fileName= string.Format("离职面谈记录表({0}).pdf", ds.Tables[0].Rows[0]["u_xingming"]);if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0){//string diqu = biaozhun.GetOne("select dq_name from rsgl_diqu where dq_id=" + ds.Tables[0].Rows[0]["u_diqu"].ToString());string bumen = biaozhun.GetOne("select bm_name from rsgl_bumen where bm_id=" + ds.Tables[0].Rows[0]["u_bumen"].ToString());string zhiwu = biaozhun.GetOne("select zw_name from rsgl_zhiwu where zw_id=" + ds.Tables[0].Rows[0]["u_zhiwu"].ToString());var dic = new Dictionary<string, string>();dic.Add("S_EmployeeName", ds.Tables[0].Rows[0]["u_xingming"].ToString());dic.Add("S_Department", bumen);dic.Add("S_Duty", zhiwu);dic.Add("S_CardNum", uKaHao);dic.Add("S_EntryDate", ds.Tables[0].Rows[0]["u_ruzhitime"].ToString().Split('T')[0]);if (checkboxValues.Trim() != ""){string[] check = checkboxValues.Split(',');for (int i = 0; i < check.Length; i++){dic.Add("checkbox" + check[i], "");//
}}url= current + "wordfile\\" +fileName;word.WordCopyToWpf(current+ "rs_Model\\离职面谈记录表.doc", current + "wordfile\\离职面谈记录表" + Guid.NewGuid() + ".doc", url, dic);}break;}case "15":{//是否十大岗位var i = new SpecialRole().GetJueSeByJibie(ds.Tables[0].Rows[0]["u_jibie"].ToString());var checkboxValues = context.Request["CheckboxValues"];fileName= string.Format("员工背景调查表({0}).pdf", ds.Tables[0].Rows[0]["u_xingming"]);if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0){string bumen = biaozhun.GetOne("select bm_name from rsgl_bumen where bm_id=" + ds.Tables[0].Rows[0]["u_bumen"].ToString());string zhiwu = biaozhun.GetOne("select zw_name from rsgl_zhiwu where zw_id=" + ds.Tables[0].Rows[0]["u_zhiwu"].ToString());var dic = new Dictionary<string, string>();dic.Add("name", ds.Tables[0].Rows[0]["u_xingming"].ToString());dic.Add("sex", ds.Tables[0].Rows[0]["u_xingbie"].ToString());dic.Add("bumen", bumen);dic.Add("zhiwu", zhiwu);dic.Add("ruzhi", Convert.ToDateTime(ds.Tables[0].Rows[0]["u_ruzhitime"].ToString()).ToString("yyyy-MM-dd"));dic.Add(i> 0 ? "zhongyao" : "yiban", "");var bj = WCFRsglServiceClientHelper.Instance.GetDataByExecuteSql(@"Select b_Checkjibie, b_id, b_Method, b_Reason, b_Time, bs_id, bs_Name,
u_Kahao from rsgl_Background WHERE u_Kahao=" +uKaHao);if (bj != null && bj.Rows.Count > 0){var shenfen = bj.Select("bs_id=2");var xueli = bj.Select("bs_id=1");var jingli = bj.Select("bs_id=3");var lizhi = bj.Select("bs_id=4");#region 身份信息if (shenfen != null && shenfen.Length > 0){if (shenfen[0]["b_Method"].ToString() == "1"){dic.Add("shenfenWay", "网站调查");}else if (shenfen[0]["b_Method"].ToString() == "2"){dic.Add("shenfenWay", "电话调查");}else if (shenfen[0]["b_Method"].ToString() == "3"){dic.Add("shenfenWay", "其他方式");}dic.Add("shenfenRemarks", shenfen[0]["b_Reason"].ToString());}#endregion#region 学历调查if (xueli != null && xueli.Length > 0){if (xueli[0]["b_Method"].ToString() == "1"){dic.Add("xueliWay", "网站调查");}else if (xueli[0]["b_Method"].ToString() == "2"){dic.Add("xueliWay", "电话调查");}else if (xueli[0]["b_Method"].ToString() == "3"){dic.Add("xueliWay", "其他方式");}dic.Add("xueliRemarks", xueli[0]["b_Reason"].ToString());}#endregion#region 工作经历if (jingli != null && jingli.Length > 0){if (jingli[0]["b_Method"].ToString() == "1"){dic.Add("jingliWay", "网站调查");}else if (jingli[0]["b_Method"].ToString() == "2"){dic.Add("jingliWay", "电话调查");}else if (jingli[0]["b_Method"].ToString() == "3"){dic.Add("jingliWay", "其他方式");}dic.Add("jingliRemarks", jingli[0]["b_Reason"].ToString());}#endregion#region 离职原因if (lizhi != null && lizhi.Length > 0){if (lizhi[0]["b_Method"].ToString() == "1"){dic.Add("lizhiWay", "网站调查");}else if (lizhi[0]["b_Method"].ToString() == "2"){dic.Add("lizhiWay", "电话调查");}else if (lizhi[0]["b_Method"].ToString() == "3"){dic.Add("lizhiWay", "其他方式");}dic.Add("lizhiRemarks", lizhi[0]["b_Reason"].ToString());}#endregion}if (checkboxValues.Trim() != ""){string[] check = checkboxValues.Split(',');for (int j = 0; j < check.Length; j++){dic.Add(check[j],"");//
}}url= current + "wordfile\\" +fileName;word.WordCopyToWpf(current+ "rs_Model\\员工背景调查表.doc", current + "wordfile\\员工背景调查表" + Guid.NewGuid() + ".doc", url, dic);}break;}case "23":{//不需向word中插入数据if (ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0){string juese = biaozhun.GetOne("select js_name from rsgl_juese where js_id =" + ds.Tables[0].Rows[0]["u_jibie"].ToString());//命名形如:55_出纳岗位职责var jueSeWordName = ds.Tables[0].Rows[0]["u_jibie"] + "_" + juese + "岗位职责";fileName= string.Format(jueSeWordName + "({0}).pdf", ds.Tables[0].Rows[0]["u_xingming"]);word.CreateNewDocument(current+ "rs_Model\\岗位职责\\" + jueSeWordName + ".docx");url= current + "wordfile\\" +fileName;word.WordCopyToWpf(current+ "rs_Model\\岗位职责\\" + jueSeWordName + ".docx", current + "wordfile\\" + jueSeWordName + "" + Guid.NewGuid() + ".docx", url, null);}break;}}if (string.IsNullOrEmpty(fileName))return "";return "../../wordfile/" +fileName;}catch(Exception e){return "0|" +e.Message;}}#region 获取心理测试分数private static string H_xinliCS(objectobj){string result = string.Empty;double score = 0;if (double.TryParse(Convert.ToString(obj), outscore)){if (score <= 50){result= "你很重视原则,多数时候都能够和别人合作,非常随和。可是你仍然有自己的底线,是所有人都无法逾越的。假使对方的要求超过你能接受的程度,又一点都没有讨论的弹性,那你可会受不了,以任何想得到的方法来抵制。或许双方兜个圈子来谈事情,就不会弄得那么僵。";}else if (score <= 70){result= "你有点讨厌麻烦的事,所以遇到一些突如其来的意外,会显得格外不耐烦,也有一点点担心不能处理得当。若是给你很有规律固定的工作,你通常都可以做得很好。 可是一碰上别人对你临危受命,你就开始慌张起来。所以一定要有人陪在身边,你才会有安全感,有信心把事情完成。";}else if (score <= 115){result= "遇到压力时,你会找其他管道来舒缓紧绷的情绪,让自己不会那么沉重。然后等到心情平静下来,慢慢思考解决方法,顺利渡过逆境。所以人家多半会误以为你一 直过得很平顺 ,无风无雨,却不知你已经面对过不少困境,运用经验闯过了每一次关卡。";}else{result= "你是个外柔内刚的人,平日总是不会经常表达自己的意见。因为你知道应该要让事情发展到某种程度,你再发言,才不会被当作乱放炮。所以你的容忍度颇高,即使到不能忍耐的时候,你还是会让自己去适应环境。可是,你很可能日益习惯压力的逼迫,无形中延展你的耐力,逐渐麻痹,也不知道真正的界限在哪儿。";}}else{result= "未回答心理测试题目。";}returnresult;}#endregionprivate static stringGetFilesUrlProgress(HttpContext context){var u_kaHao = context.Request["u_KaHao"];var u_jueSe = context.Request["u_JueSe"];return "";}public boolIsReusable{get{return false;}}}
}

View Code

   向word标签中插入值之前,word文档一定要先有相应名称的标签名;

3、word帮助类

usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Text;usingMicrosoft.Office.Interop.Word;usingWeb.Code;usingSystem.Management;usingSystem.IO;public classWordClass
{publicWordClass(){killWinWordProcess();}~WordClass(){killWinWordProcess();}private _Application wordApp = null;private _Document wordDoc = null;public_Application Application{get{returnwordApp;}set{wordApp=value;}}public_Document Document{get{returnwordDoc;}set{wordDoc=value;}}/// <summary>///通过模板创建新文档/// </summary>/// <param name="filePath">模板文档</param>public void CreateNewDocument(stringfilePath){wordApp= newApplicationClass();wordApp.DisplayAlerts=WdAlertLevel.wdAlertsNone;wordApp.Visible= false;try{object missing =System.Reflection.Missing.Value;object templateName =filePath;object temp =filePath;//建立一个基于摸版的文档//doc = app.Documents.Add(ref temp, ref nothing, ref nothing, ref nothing);//第一种 AddwordDoc = wordApp.Documents.Add(ref  temp, ref missing, ref missing, refmissing);//第二种 Open//wordDoc = wordApp.Documents.Open(ref templateName, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing,//ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
}catch(Exception e){LogRecord.Write(null, "创建模板失败!" +filePath);//Add异常 关闭wordDoc,wordApp对象object SaveChanges =WdSaveOptions.wdSaveChanges;object OriginalFormat =WdOriginalFormat.wdOriginalDocumentFormat;object RouteDocument = false;wordDoc.Close(ref SaveChanges, ref OriginalFormat, refRouteDocument);wordApp.Quit(ref SaveChanges, ref OriginalFormat, refRouteDocument);throwe;}}/// <summary>///保存新文件/// </summary>/// <param name="filePath">保存路径</param>/// <param name="saveFormat">保存格式(Word: WdSaveFormat.wdFormatDocument; PDF: WdSaveFormat.wdFormatPDF; Other: ...)</param>public void SaveDocument(stringfilePath, WdSaveFormat saveFormat){object fileName = WdSaveFormat.wdFormatPDF == saveFormat ? filePath.Substring(0, filePath.Length - 4) + ".pdf": filePath;object format =saveFormat;object missing =System.Reflection.Missing.Value;try{wordDoc.SaveAs(ref fileName, ref format, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, refmissing);LogRecord.Write(null, string.Format("\"{0}\" 文件已保存到服务器.", filePath));}catch(Exception e){LogRecord.Write(null, string.Format("\"{0}\" 文件已保存到服务器失败!", filePath));throwe;}finally{//保存完毕 关闭wordDoc,wordApp对象if (wordDoc != null){if (WdSaveFormat.wdFormatPDF !=saveFormat)wordDoc.Close(ref missing, ref missing, refmissing);wordDoc= null;}if (wordApp != null){wordApp.Quit(ref missing, ref missing, refmissing);wordApp= null;}}}//保存新文件public void SaveDocument(stringfilePath){object fileName =filePath;object format = WdSaveFormat.wdFormatDocument;//保存格式object miss =System.Reflection.Missing.Value;try{wordDoc.SaveAs(ref fileName, ref format, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, ref miss, refmiss);LogRecord.Write(null, string.Format("\"{0}\" 文件已保存到服务器.", filePath));}catch(Exception e){LogRecord.Write(null, string.Format("\"{0}\" 文件已保存到服务器失败!", filePath));throwe;}finally{//保存完毕 关闭wordDoc,wordApp对象object SaveChanges =WdSaveOptions.wdSaveChanges;object OriginalFormat =WdOriginalFormat.wdOriginalDocumentFormat;object RouteDocument = false;wordDoc.Close(ref SaveChanges, ref OriginalFormat, refRouteDocument);wordApp.Quit(ref SaveChanges, ref OriginalFormat, refRouteDocument);}}//在书签处插入值public bool InsertValue(string bookmark, stringvalue){object bkObj =bookmark;try{if(wordApp.ActiveDocument.Bookmarks.Exists(bookmark)){//对应第一种//wordApp.ActiveDocument.Bookmarks.get_Item(ref bkObj).Select();//wordApp.Selection.TypeText(value);//对应第二种wordApp.ActiveDocument.Bookmarks.get_Item(ref bkObj).Range.Text =value;return true;}}catch(Exception e){LogRecord.Write(null, string.Format("\"{0}\" 标签插入失败!", bookmark));//插入标签异常完毕 关闭wordDoc,wordApp对象object SaveChanges =WdSaveOptions.wdSaveChanges;object OriginalFormat =WdOriginalFormat.wdOriginalDocumentFormat;object RouteDocument = false;wordDoc.Close(ref SaveChanges, ref OriginalFormat, refRouteDocument);wordApp.Quit(ref SaveChanges, ref OriginalFormat, refRouteDocument);throwe;}return false;}//插入表格,bookmark书签public Table InsertTable(string bookmark, int rows, int columns, floatwidth){object miss =System.Reflection.Missing.Value;object oStart =bookmark;Range range= wordDoc.Bookmarks.get_Item(ref oStart).Range;//表格插入位置Table newTable = wordDoc.Tables.Add(range, rows, columns, ref miss, refmiss);//设置表的格式newTable.Borders.Enable = 1;  //允许有边框,默认没有边框(为0时报错,1为实线边框,2、3为虚线边框,以后的数字没试过)newTable.Borders.OutsideLineWidth = WdLineWidth.wdLineWidth050pt;//边框宽度if (width != 0){newTable.PreferredWidth= width;//表格宽度
}newTable.AllowPageBreaks= false;returnnewTable;}//合并单元格 表名,开始行号,开始列号,结束行号,结束列号public void MergeCell(Microsoft.Office.Interop.Word.Table table, int row1, int column1, int row2, intcolumn2){table.Cell(row1, column1).Merge(table.Cell(row2, column2));}//设置表格内容对齐方式 Align水平方向,Vertical垂直方向(左对齐,居中对齐,右对齐分别对应Align和Vertical的值为-1,0,1)public void SetParagraph_Table(Microsoft.Office.Interop.Word.Table table, int Align, intVertical){switch(Align){case -1: table.Range.ParagraphFormat.Alignment = WdParagraphAlignment.wdAlignParagraphLeft; break;//左对齐case 0: table.Range.ParagraphFormat.Alignment = WdParagraphAlignment.wdAlignParagraphCenter; break;//水平居中case 1: table.Range.ParagraphFormat.Alignment = WdParagraphAlignment.wdAlignParagraphRight; break;//右对齐
}switch(Vertical){case -1: table.Range.Cells.VerticalAlignment = WdCellVerticalAlignment.wdCellAlignVerticalTop; break;//顶端对齐case 0: table.Range.Cells.VerticalAlignment = WdCellVerticalAlignment.wdCellAlignVerticalCenter; break;//垂直居中case 1: table.Range.Cells.VerticalAlignment = WdCellVerticalAlignment.wdCellAlignVerticalBottom; break;//底端对齐
}}//设置表格字体public void SetFont_Table(Microsoft.Office.Interop.Word.Table table, string fontName, doublesize){if (size != 0){table.Range.Font.Size=Convert.ToSingle(size);}if (fontName != ""){table.Range.Font.Name=fontName;}}//是否使用边框,n表格的序号,use是或否public void UseBorder(int n, booluse){if(use){wordDoc.Content.Tables[n].Borders.Enable= 1;  //允许有边框,默认没有边框(为0时报错,1为实线边框,2、3为虚线边框,以后的数字没试过)
}else{wordDoc.Content.Tables[n].Borders.Enable= 2;  //允许有边框,默认没有边框(为0时报错,1为实线边框,2、3为虚线边框,以后的数字没试过)
}}//给表格插入一行,n表格的序号从1开始记public void AddRow(intn){object miss =System.Reflection.Missing.Value;wordDoc.Content.Tables[n].Rows.Add(refmiss);}//给表格添加一行public voidAddRow(Microsoft.Office.Interop.Word.Table table){object miss =System.Reflection.Missing.Value;table.Rows.Add(refmiss);}//给表格插入rows行,n为表格的序号public void AddRow(int n, introws){object miss =System.Reflection.Missing.Value;Microsoft.Office.Interop.Word.Table table=wordDoc.Content.Tables[n];for (int i = 0; i < rows; i++){table.Rows.Add(refmiss);}}//给表格中单元格插入元素,table所在表格,row行号,column列号,value插入的元素public void InsertCell(Microsoft.Office.Interop.Word.Table table, int row, int column, stringvalue){table.Cell(row, column).Range.Text=value;}//给表格中单元格插入元素,n表格的序号从1开始记,row行号,column列号,value插入的元素public void InsertCell(int n, int row, int column, stringvalue){wordDoc.Content.Tables[n].Cell(row, column).Range.Text=value;}//给表格插入一行数据,n为表格的序号,row行号,columns列数,values插入的值public void InsertCell(int n, int row, int columns, string[] values){Microsoft.Office.Interop.Word.Table table=wordDoc.Content.Tables[n];for (int i = 0; i < columns; i++){table.Cell(row, i+ 1).Range.Text =values[i];}}//插入图片public void InsertPicture(string bookmark, string picturePath, float width, floathight){object miss =System.Reflection.Missing.Value;object oStart =bookmark;Object linkToFile= false;       //图片是否为外部链接Object saveWithDocument = true;  //图片是否随文档一起保存object range = wordDoc.Bookmarks.get_Item(ref oStart).Range;//图片插入位置wordDoc.InlineShapes.AddPicture(picturePath, ref linkToFile, ref saveWithDocument, refrange);wordDoc.Application.ActiveDocument.InlineShapes[1].Width = width;   //设置图片宽度wordDoc.Application.ActiveDocument.InlineShapes[1].Height = hight;  //设置图片高度
}//插入一段文字,text为文字内容public void InsertText(string bookmark, stringtext){object oStart =bookmark;object range = wordDoc.Bookmarks.get_Item(refoStart).Range;Paragraph wp= wordDoc.Content.Paragraphs.Add(refrange);wp.Format.SpaceBefore= 6;wp.Range.Text=text;wp.Format.SpaceAfter= 24;wp.Range.InsertParagraphAfter();wordDoc.Paragraphs.Last.Range.Text= "\n";}//杀掉winword.exe进程public voidkillWinWordProcess(){try{System.Diagnostics.Process[] processes= System.Diagnostics.Process.GetProcessesByName("WINWORD");foreach (System.Diagnostics.Process process inprocesses){if(process.HasExited){continue;}//获取进程用户名//LogRecord.Write(null, "进程用户名" + GetProcessUserName(process.Id));if (process.MainWindowTitle == ""){DateTime startTime=process.StartTime;TimeSpan ts= DateTime.Now -startTime;//停止启动大于15秒的进程&&进程未终止if (ts.Seconds > 15){process.Kill();}}}}catch(Exception e){LogRecord.Write(e,"进程停止失败!");throwe;}}private static string GetProcessUserName(intpID){string text1 = null;SelectQuery query1= new SelectQuery("Select * from Win32_Process WHERE processID=" +pID);ManagementObjectSearcher searcher1= newManagementObjectSearcher(query1);try{foreach (ManagementObject disk insearcher1.Get()){ManagementBaseObject inPar= null;ManagementBaseObject outPar= null;inPar= disk.GetMethodParameters("GetOwner");outPar= disk.InvokeMethod("GetOwner", inPar, null);text1= outPar["User"].ToString();break;}}catch{text1= "SYSTEM";}returntext1;}public void WordCopyToWpf(string sourceFileName,string sourceCopyFileName,string destWpfFileName,Dictionary<string,string>dic){//复制源文件的一个副本File.Copy(sourceFileName, sourceCopyFileName, true);//将源文件副本进行插入标签值后生成Wpf
WordToPdf(sourceCopyFileName, destWpfFileName, dic);//删除源文件的副本if(System.IO.Directory.Exists(sourceCopyFileName))File.Delete(sourceCopyFileName);}/// <summary>///把Word文件转换成pdf文件/// </summary>/// <param name="sourcePath">需要转换的文件路径和文件名称</param>/// <param name="targetPath">转换完成后的文件的路径和文件名名称</param>/// <returns>成功返回true,失败返回false</returns>public bool WordToPdf(object sourcePath, string targetPath, Dictionary<string, string>dic){bool result = false;WdExportFormat wdExportFormatPDF=WdExportFormat.wdExportFormatPDF;object missing =Type.Missing;ApplicationClass applicationClass= null;Document document= null;try{applicationClass= newApplicationClass();document= applicationClass.Documents.Open(ref sourcePath, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, refmissing);if (document != null){InsertWordMarks(applicationClass, dic);document.ExportAsFixedFormat(targetPath, wdExportFormatPDF,false, WdExportOptimizeFor.wdExportOptimizeForPrint, WdExportRange.wdExportAllDocument, 0, 0, WdExportItem.wdExportDocumentContent, true, true, WdExportCreateBookmarks.wdExportCreateWordBookmarks, true, true, false, refmissing);}result= true;}catch(Exception e){LogRecord.Write(e,e.Message);result= false;}finally{if (document != null){document.Close(ref missing, ref missing, refmissing);document= null;}if (applicationClass != null){applicationClass.Quit(ref missing, ref missing, refmissing);applicationClass= null;}}returnresult;}public void InsertWordMarks(ApplicationClass appClass, Dictionary<string, string>dic){if(dic != null)foreach (var aDic indic){object bkObj =aDic.Key;if(appClass.ActiveDocument.Bookmarks.Exists(bkObj.ToString()))appClass.ActiveDocument.Bookmarks.get_Item(ref bkObj).Range.Text =aDic.Value;}}}

View Code

4、需要注意的地方:本机安装office2007及以上版本;即可引用Microsoft.Office.Interop.Word dll文件;

5、代码部署至服务器上后,给服务器安装SaveAsPDFandXPS(office2007不支持Word转PDF时安装_服务器端);然后再进行DOM组件的设置(如下图);本地要运行的话也要安装SaveAsPDFandXPS(office2007不支持Word转PDF时安装_服务器端)

  完毕;

转载于:https://www.cnblogs.com/liuqichun/p/4546039.html

将Word转换成Pdf相关推荐

  1. C# 使用Microsoft.Office.Interop将Excel、Word转换成PDF遇到的问题总结

    首先应用中引入Microsoft.Office.Interop.Excel.Microsoft.Office.Interop.Word两个dll,将嵌入式互操作类型设为False, WORD转换成PD ...

  2. 用什么方法可以将Word转换成PDF文档?

    我们有时编辑完Word文件需要打印或发送给他人查看,一般会先转换为PDF格式,这样在别的电脑上打开时就不会出现格式的变动,也不会出现因为版本而无法打开的问题,那么用什么方法可以将Word转换成PDF文 ...

  3. 生成目录_将word转换成PDF

    word2010生成目录_将word转换成PDF.doc 一, 概要 1.1 在 Microsoft Word2010 中 自动 生成目录 1.2 在 WPS 中 将 word 转换 成 PDF 1. ...

  4. 有什么可以将word转换成pdf的免费转换工具?

    最近有些小伙伴私信我说word文件可以转换成pdf文件吗?word转pdf后有什么区别吗?怎么将word转换成pdf呢?对于这些小编就说说转换后的区别吧.word转换pdf格式之后是有各种好处的,首先 ...

  5. word转换成pdf,包括导航目录和图片不变黑

    1.word转换成pdf,包括导航目录和图片不变黑: 有些时候将word转换成pdf,我们会发现生成的文件要么不带导航目录,要么就是图片显示有问题,比如变黑.变黑是因为某些图片在作图时修改了透明度,因 ...

  6. 如何批量将Word转换成PDF?这几种方法都可以实现批量转换

    怎么把Word文档批量转换成PDF格式呢?我们在日常的工作学习中,经常会使用Word文档来编辑文件,把文件编辑好后在发送的时候一般都会选择PDF格式来发送,,因为这样我们编辑好的格式才不会混乱.当我们 ...

  7. 万能word转换成pdf转换器下载

    万能word转换成pdf转换器下载 Word怎么转换成PDF格式的?这两者的转换基于很多用户希望更好的保护文件或者是为了体验更好的阅读性,PDF格式的文件在安全性和阅读性方便都比较好.可是我们一般面对 ...

  8. word转换成pdf后乱码怎么办

    平常工作或学习中,很多Word文档需要转换成PDF格式文档,方便阅读和参考.之前用过在线的转换工具,转换出来的效果实在不好,有大小限制不说,有时格式也会乱,之后经过小编的不断测试,终于找了一款实用的工 ...

  9. 怎么样在线Word转换成PDF转换器

    导语:从事文字编辑行业的用户对于PDF资料文件转换成Word并不陌生,但有时候因为客观原因我们需要将编辑好的Word转换成PDF转换器在线http://app.xunjiepdf.com,方便客户浏览 ...

  10. 迅捷word转换成pdf转换器最新版

    怎样把Word转换成PDF格式的好呢?随着PDF格式文件使用的范围越来越广,很多时候我们就需要把Word格式转换成PDF进行使用,很多朋友都会觉得手上都没有辅助软件而无法进行操作.也可能是没有找到正确 ...

最新文章

  1. perf+火焰图 = 性能分析利器
  2. 在cell中取得UITableView所在的ViewController对象
  3. 华为机考回忆版(三:自己的)
  4. AAAI 2020 开源论文 | 可建模语义分层的知识图谱补全方法
  5. Oracle Spatial-元数据及SDO_GEOMETRY
  6. Kirill And The Game CodeForces - 842A
  7. 用typescript开发koa2的二三事
  8. numpy基础(part11)--特征值与奇异值分解
  9. pythonwx功能_python中wx模块的具体使用方法
  10. Spring Boot 2.0---使用Swagger2构建强大的API文档
  11. 下面属于python内置对象的有哪些_Python内置对象实现的方法及注意事项
  12. LAMP源码安装原理
  13. Atitit 知识体系概论 attilax著 三大类型 学术型 应用型 职业技术教育 1 附表1、CIP-2000学科群设置情况总表 1 三大层次 分类 学科 专业 2 20个知识大类 2 需
  14. webx mysql_Webx项目的获取与验证
  15. HTTP网页URL链接的语法格式最详细的分析与介绍
  16. cesium 矢量图 编辑_openlayers添加、删除矢量图,多边形
  17. 21. 查询表sc——查询平均成绩大于等于90分的学生学号和平均成绩
  18. 【matplotlib】20.其他图
  19. Soft Actor-Critic 论文笔记
  20. vc 读服务器文件,vc从服务器读取文件

热门文章

  1. matlab求线与面的夹角,基于MATLAB的通用晶面间夹角公式的推导与求解
  2. viper4android蓝牙耳机,蝰蛇音效app下载-蝰蛇音效官方版(ViPER4Android FX)下载v2.7.1.0 安卓版-单机手游网...
  3. 计算机vb题库程序代码编写,计算机二级考试.题库-vb程序题
  4. 小米图标大小设置方法_miui12如何设置图标大小
  5. 【易语言界面开发系列教程之 (EX_UI使用系列教程--第10讲(EXui右键菜单演示案例))】
  6. 正则表达式应用(以手机号为例)
  7. protues8.0仿真视频教程 51单片机教程
  8. 小猿圈web分享-一个web全栈工程师的面试总结
  9. 测试UDP端口连通性
  10. 使用express 代理图片下载