- 浏览: 130154 次
- 性别:
- 来自: 北京
最新评论
-
hunthon:
thank you!
oracle 忘记sys 密码后,更改方法 -
leopanhang:
cool, it works for me on Oracle ...
oracle 忘记sys 密码后,更改方法 -
lh870003574:
非常好非常详细,谢谢分享
Java Web开发——Struts2 中.action和.do的奥秘 -
闫昌盛:
项目 ,右键 属性 java Build Path-- ...
不能正确把JAVA文件编译成class类 -
fkpwolf:
.....相当保守
昨天去bea 听培训去了,bea 狂言称自己是公认为SOA领导者
js 操作word
<%@ page
language="java"
contentType="text/html; charset=GBK"
pageEncoding="GBK"
%>
<%@ page import="java.util.*"%>
<%@ page import="com.icss.common.db.DataMsg"%>
<%@ page import="com.icss.common.db.Data"%>
<%@ page import="com.icss.basedb.basecode.code.Dictionary"%>
<%
DataMsg dataMsg = (DataMsg)request.getAttribute("dataMsg");
if(dataMsg == null){
dataMsg = new DataMsg();
}
Map dictMap = (Map) request.getAttribute("DICT");
if(dictMap == null){
dictMap = new HashMap();
}
%>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=GBK">
<META name="GENERATOR" content="IBM WebSphere Studio">
<TITLE>打印</TITLE>
<script language="javascript">
function getWord() {
//var wd;
var wd = document.getElementById("office");
//新建文档
wd.CreateNew("Word.Document");
return wd;
}
function printWord(data,datalb){
//word对象
//将页面中表格的内容存放在数组中
var wdapp = getWord();
var column = 5;
//var range = wdapp.ActiveDocument.Range(0,1);
wdapp.visible=true;
//range.Text="订单信息列表"+"\n";
//range.Text="";
wdapp.ActiveDocument.Application.Selection.ParagraphFormat.Alignment = 1;
//wdapp.ActiveDocument.Application.Selection.ParagraphFormat.LineSpacingRule = 4;
//wdapp.ActiveDocument.Application.Selection.ParagraphFormat.LineSpacing = 10;
//wdapp.ActiveDocument.Application.Selection.HorizontalAlignment = 1;
// wdapp.Activedocument.Paragraphs.Add(range);
wdapp.Activedocument.Paragraphs.Add();
var row = 32;
rngcurrent=wdapp.Activedocument.Paragraphs(2).Range;
var objTable=wdapp.ActiveDocument.Tables.Add(rngcurrent,row,column); //插入表格
objTable.Columns(1).width = 125;
objTable.Columns(2).width = 100;
objTable.Columns(3).width = 105;
objTable.Columns(4).width = 50;
objTable.Columns(5).width = 50;
objTable.Borders.OutsideLineStyle = 1;
objTable.Borders.InsideLineStyle = 1;
var u =0;
<% for (int i=0;i<dataMsg.size();i++){
Data data = dataMsg.getData(i);
String nysczlmc = data.getString("NYSCZL","");
String fbqjmc = data.getString("FBQJ","");
String drtmc = data.getString("DRT","");
String wxhxpmc = data.getString("WXHXP","");
String rqqjmc = data.getString("RQQJ","");
String dxdlmc = data.getString("DXDL","");
String kjmc = data.getString("KJ","");
String rzbmc = data.getString("RZB","");
String jzgcmc = data.getString("JZGC","");
String dydqmc = data.getString("DYDQ","");
String qcpjmc = data.getString("QCPJ","");
String ldfhypmc = data.getString("LDFHYP","");
String etwjmc = data.getString("ETWJ","");
String jydqmc = data.getString("JYDQ","");
Map map =new HashMap();
if(!"".equals(nysczlmc)){
String nysczl = Dictionary.value(dictMap,"PCJD_CPLB_NYSCZL",nysczlmc);
map.put("农业生产材料",nysczl);
}
if(!"".equals(fbqjmc)){
String fbqj = Dictionary.value(dictMap,"PCJD_CPLB_FBQJ",fbqjmc);
map.put("防爆器具",fbqj);
}
if(!"".equals(drtmc)){
String drt = Dictionary.value(dictMap,"PCJD_CPLB_DRT",drtmc);
map.put("电热毯",drt);
}
if(!"".equals(wxhxpmc)){
String wxhxp = Dictionary.value(dictMap,"PCJD_CPLB_WXHXP",wxhxpmc);
map.put("危险化学品",wxhxp);
}
if(!"".equals(rqqjmc)){
String rqqj = Dictionary.value(dictMap,"PCJD_CPLB_RQQJ",rqqjmc);
map.put("燃气器具",rqqj);
}
if(!"".equals(dxdlmc)){
String dxdl = Dictionary.value(dictMap,"PCJD_CPLB_DXDL",dxdlmc);
map.put("电线电缆",dxdl);
}
if(!"".equals(kjmc)){
String kj = Dictionary.value(dictMap,"PCJD_CPLB_KJ",kjmc);
map.put("扣件",kj);
}
if(!"".equals(rzbmc)){
String rzb = Dictionary.value(dictMap,"PCJD_CPLB_RZB",rzbmc);
map.put("人造板",rzb);
}
if(!"".equals(jzgcmc)){
String jzgc = Dictionary.value(dictMap,"PCJD_CPLB_JZGC",jzgcmc);
map.put("建筑钢材",jzgc);
}
if(!"".equals(dydqmc)){
String dydq = Dictionary.value(dictMap,"PCJD_CPLB_DYDQ",dydqmc);
map.put("低压电器",dydq);
}
if(!"".equals(qcpjmc)){
String qcpj = Dictionary.value(dictMap,"PCJD_CPLB_QCPJ",qcpjmc);
map.put("汽车配件",qcpj);
}
if(!"".equals(ldfhypmc)){
String ldfhyp = Dictionary.value(dictMap,"PCJD_CPLB_LDFHYP",ldfhypmc);
map.put("劳动防护用品",ldfhyp);
}
if(!"".equals(etwjmc)){
String etwj = Dictionary.value(dictMap,"PCJD_CPLB_ETWJ",etwjmc);
map.put("儿童玩具",etwj);
}
if(!"".equals(jydqmc)){
String jydq = Dictionary.value(dictMap,"PCJD_CPLB_JYDQ",jydqmc);
map.put("家用电器",jydq);
}
int y = map.size();
%>
//第一行
<% if(i==0) {%>
objTable.Cell(1,1).Range.Font.Bold = 9999998;
objTable.Cell(1,1).Range.Font.Size = 12;
objTable.Cell(1,1).Range.Font.Name = "宋体";
objTable.Cell(1,1).Height = 22;
objTable.Cell(1,1).Range.Text = "重点产品生产加工企业普查建档登记表";
objTable.Cell(1, 1).Merge(objTable.Cell(1, 5));
//第二行
objTable.Cell(2,1).Range.Font.Bold = 9999998;
objTable.Cell(2,1).Range.Font.Size = 10;
objTable.Cell(2,1).Range.Font.Name = "宋体";
objTable.Cell(2,1).Range.Text = "企业名称(以公章为主):";
objTable.Cell(2,2).Range.Font.Bold = 0000000;
objTable.Cell(2,2).Range.Font.Size = 10;
objTable.Cell(2,2).Range.Font.Name = "宋体";
objTable.Cell(2,2).Range.Text = '<%=data.getString("QYMC")%>';
objTable.Cell(2, 2).Merge(objTable.Cell(2, 5));
//第三行
objTable.Cell(3,1).Range.Font.Bold = 9999998;
objTable.Cell(3,1).Range.Font.Size = 10;
objTable.Cell(3,1).Range.Font.Name = "宋体";
objTable.Cell(3,1).Range.Text = "所在地详细地址:";
objTable.Cell(3,2).Range.Font.Bold = 0000000;
objTable.Cell(3,2).Range.Font.Size = 10;
objTable.Cell(3,2).Range.Font.Name = "宋体";
objTable.Cell(3,2).Range.Text = '<%=Dictionary.value(dictMap,"101001",data.getString("SHI"))%><%=Dictionary.value(dictMap,"101001",data.getString("XIAN"))%><%=data.getString("SZDXXDZ")%>';
objTable.Cell(3, 2).Merge(objTable.Cell(3, 5));
//第四行
objTable.Cell(4,1).Range.Font.Bold = 9999998;
objTable.Cell(4,1).Range.Font.Size = 10;
objTable.Cell(4,1).Range.Font.Name = "宋体";
objTable.Cell(4,1).Range.Text = "法人代表或负责人:";
objTable.Cell(4,2).Range.Font.Bold = 0000000;
objTable.Cell(4,2).Range.Font.Size = 10;
objTable.Cell(4,2).Range.Font.Name = "宋体";
objTable.Cell(4,2).Range.Text = '<%=data.getString("FRDBHFZR")%>';
objTable.Cell(4,3).Range.Font.Bold = 9999998;
objTable.Cell(4,3).Range.Font.Size = 10;
objTable.Cell(4,3).Range.Font.Name = "宋体";
objTable.Cell(4,3).Range.Text = "企业人数:";
objTable.Cell(4,4).Range.Font.Bold = 0000000;
objTable.Cell(4,4).Range.Font.Size = 10;
objTable.Cell(4,4).Range.Font.Name = "宋体";
objTable.Cell(4,4).Range.Text = '<%=data.getString("QYRS")%>人';
objTable.Cell(4, 4).Merge(objTable.Cell(4, 5));
//第五行
objTable.Cell(5,1).Range.Font.Bold = 9999998;
objTable.Cell(5,1).Range.Font.Size = 10;
objTable.Cell(5,1).Range.Font.Name = "宋体";
objTable.Cell(5,1).Range.Text = "联系电话:";
objTable.Cell(5,2).Range.Font.Bold = 0000000;
objTable.Cell(5,2).Range.Font.Size = 10;
objTable.Cell(5,2).Range.Font.Name = "宋体";
objTable.Cell(5,2).Range.Text = '<%=data.getString("LXDH")%>';
objTable.Cell(5,3).Range.Font.Bold = 9999998;
objTable.Cell(5,3).Range.Font.Size = 10;
objTable.Cell(5,3).Range.Font.Name = "宋体";
objTable.Cell(5,3).Range.Text = "邮政编码:";
objTable.Cell(5,4).Range.Font.Bold = 0000000;
objTable.Cell(5,4).Range.Font.Size = 10;
objTable.Cell(5,4).Range.Font.Name = "宋体";
objTable.Cell(5,4).Range.Text = '<%=data.getString("YZBM")%>';
objTable.Cell(5, 4).Merge(objTable.Cell(5, 5));
//第六行
objTable.Cell(6,1).Range.Font.Bold = 9999998;
objTable.Cell(6,1).Range.Font.Size = 10;
objTable.Cell(6,1).Range.Font.Name = "宋体";
objTable.Cell(6,1).Range.Text = "营业执照:";
objTable.Cell(6,2).Range.Font.Bold = 0000000;
objTable.Cell(6,2).Range.Font.Size = 10;
objTable.Cell(6,2).Range.Font.Name = "宋体";
objTable.Cell(6,2).Range.Text = '<% if("1".equals(data.getString("YYZZ",""))){ out.print("有");}else if("0".equals(data.getString("YYZZ"))){out.print("无");} %>';
objTable.Cell(6,3).Range.Font.Bold = 9999998;
objTable.Cell(6,3).Range.Font.Size = 10;
objTable.Cell(6,3).Range.Font.Name = "宋体";
objTable.Cell(6,3).Range.Text = "营业执照编号:";
objTable.Cell(6,4).Range.Font.Bold = 0000000;
objTable.Cell(6,4).Range.Font.Size = 10;
objTable.Cell(6,4).Range.Font.Name = "宋体";
objTable.Cell(6,4).Range.Text = '<%=data.getString("YYZZBH")%>';
objTable.Cell(6, 4).Merge(objTable.Cell(6, 5));
//第七行
objTable.Cell(7,1).Range.Font.Bold = 9999998;
objTable.Cell(7,1).Range.Font.Size = 10;
objTable.Cell(7,1).Range.Font.Name = "宋体";
objTable.Cell(7,1).Range.Text = "企业代码证:";
objTable.Cell(7,2).Range.Font.Bold = 0000000;
objTable.Cell(7,2).Range.Font.Size = 10;
objTable.Cell(7,2).Range.Font.Name = "宋体";
objTable.Cell(7,2).Range.Text = '<% if("1".equals(data.getString("QYDMZ",""))){ out.print("有");}else if("0".equals(data.getString("QYDMZ"))){out.print("无");} %>';
objTable.Cell(7,3).Range.Font.Bold = 9999998;
objTable.Cell(7,3).Range.Font.Size = 10;
objTable.Cell(7,3).Range.Font.Name = "宋体";
objTable.Cell(7,3).Range.Text = "企业代码证编号:";
objTable.Cell(7,4).Range.Font.Bold = 0000000;
objTable.Cell(7,4).Range.Font.Size = 10;
objTable.Cell(7,4).Range.Font.Name = "宋体";
objTable.Cell(7,4).Range.Text = '<%=data.getString("QYDMZBH")%>';
objTable.Cell(7, 4).Merge(objTable.Cell(7, 5));
//第八行
objTable.Cell(8,1).Range.Font.Bold = 9999998;
objTable.Cell(8,1).Range.Font.Size = 10;
objTable.Cell(8,1).Range.Font.Name = "宋体";
objTable.Cell(8,1).Range.Text = "是否获得工业产品生产许可证:";
objTable.Cell(8,2).Range.Font.Bold = 0000000;
objTable.Cell(8,2).Range.Font.Size = 10;
objTable.Cell(8,2).Range.Font.Name = "宋体";
objTable.Cell(8,2).Range.Text = '<% if("1".equals(data.getString("SFHDGYCPSCXKZ",""))){ out.print("已获得");}else if("0".equals(data.getString("SFHDGYCPSCXKZ"))){out.print("未获得");}%>';
objTable.Cell(8,3).Range.Font.Bold = 9999998;
objTable.Cell(8,3).Range.Font.Size = 10;
objTable.Cell(8,3).Range.Font.Name = "宋体";
objTable.Cell(8,3).Range.Text = "工业产品生产许可证编号:";
objTable.Cell(8,4).Range.Font.Bold = 0000000;
objTable.Cell(8,4).Range.Font.Size = 10;
objTable.Cell(8,4).Range.Font.Name = "宋体";
objTable.Cell(8,4).Range.Text = '<%=data.getString("GYCPSCXKZBH")%>';
objTable.Cell(8, 4).Merge(objTable.Cell(8, 5));
//第九行
//objTable.Cell(9,1).Range.HorizontalAlignment = 3;
objTable.Cell(9,1).Range.Font.Bold = 9999998;
objTable.Cell(9,1).Range.Font.Size = 10;
objTable.Cell(9,1).Range.Font.Name = "宋体";
objTable.Cell(9,1).Range.Text = "工业许可证获证单元:";
objTable.Cell(9, 1).Merge(objTable.Cell(10, 1));
objTable.Cell(9, 1).Merge(objTable.Cell(11, 1));
objTable.Cell(9,2).Range.Font.Bold = 9999998;
objTable.Cell(9,2).Range.Font.Size = 10;
objTable.Cell(9,2).Range.Font.Name = "宋体";
objTable.Cell(9,2).Range.Text = "应获数量:";
objTable.Cell(9,3).Range.Font.Bold = 0000000;
objTable.Cell(9,3).Range.Font.Size = 10;
objTable.Cell(9,3).Range.Font.Name = "宋体";
objTable.Cell(9,3).Range.Text = '<%=data.getString("YHSL")%>';
objTable.Cell(9, 3).Merge(objTable.Cell(9, 5));
//第十行
objTable.Cell(10,2).Range.Font.Bold = 9999998;
objTable.Cell(10,2).Range.Font.Size = 10;
objTable.Cell(10,2).Range.Font.Name = "宋体";
objTable.Cell(10,2).Range.Text = "已获数量:";
objTable.Cell(10,3).Range.Font.Bold = 0000000;
objTable.Cell(10,3).Range.Font.Size = 10;
objTable.Cell(10,3).Range.Font.Name = "宋体";
objTable.Cell(10,3).Range.Text = '<%=data.getString("YIHSL")%>';
objTable.Cell(10, 3).Merge(objTable.Cell(10, 5));
//第十一行
objTable.Cell(11,2).Range.Font.Bold = 9999998;
objTable.Cell(11,2).Range.Font.Size = 10;
objTable.Cell(11,2).Range.Font.Name = "宋体";
objTable.Cell(11,2).Range.Text = "未获数量:";
objTable.Cell(11,3).Range.Font.Bold = 0000000;
objTable.Cell(11,3).Range.Font.Size = 10;
objTable.Cell(11,3).Range.Font.Name = "宋体";
objTable.Cell(11,3).Range.Text = '<%=data.getString("WHSL")%>';
objTable.Cell(11, 3).Merge(objTable.Cell(11, 5));
//第十二行
objTable.Cell(12,1).Range.Font.Bold = 9999998;
objTable.Cell(12,1).Range.Font.Size = 10;
objTable.Cell(12,1).Range.Font.Name = "宋体";
objTable.Cell(12,1).Range.Text = "产品质量是否获得免检:";
objTable.Cell(12,2).Range.Font.Bold = 0000000;
objTable.Cell(12,2).Range.Font.Size = 10;
objTable.Cell(12,2).Range.Font.Name = "宋体";
objTable.Cell(12,2).Range.Text = '<% if("1".equals(data.getString("CPZLSFHDMJ",""))){ out.print("已获得");}else if("0".equals(data.getString("CPZLSFHDMJ"))){out.print("未获得");}%>';
objTable.Cell(12,3).Range.Font.Bold = 9999998;
objTable.Cell(12,3).Range.Font.Size = 10;
objTable.Cell(12,3).Range.Font.Name = "宋体";
objTable.Cell(12,3).Range.Text = "免检证书编号:";
objTable.Cell(12,4).Range.Font.Bold = 0000000;
objTable.Cell(12,4).Range.Font.Size = 10;
objTable.Cell(12,4).Range.Font.Name = "宋体";
objTable.Cell(12,4).Range.Text = '<%=data.getString("MJZSBH")%>';
objTable.Cell(12, 4).Merge(objTable.Cell(12, 5));
//第十三行
objTable.Cell(13,1).Range.Font.Bold = 9999998;
objTable.Cell(13,1).Range.Font.Size = 10;
objTable.Cell(13,1).Range.Font.Name = "宋体";
objTable.Cell(13,1).Range.Text = "免检证书有效期:";
objTable.Cell(13,2).Range.Font.Bold = 0000000;
objTable.Cell(13,2).Range.Font.Size = 10;
objTable.Cell(13,2).Range.Font.Name = "宋体";
objTable.Cell(13,2).Range.Text = '<%=data.getString("MJZSYXQ")%>';
objTable.Cell(13, 2).Merge(objTable.Cell(13, 5));
//第十四行
objTable.Cell(14,1).Range.Font.Bold = 9999998;
objTable.Cell(14,1).Range.Font.Size = 10;
objTable.Cell(14,1).Range.Font.Name = "宋体";
objTable.Cell(14,1).Range.Text = "是否获得3C认证:";
objTable.Cell(14, 1).Merge(objTable.Cell(15, 1));
objTable.Cell(14,2).Range.Font.Bold = 0000000;
objTable.Cell(14,2).Range.Font.Size = 10;
objTable.Cell(14,2).Range.Font.Name = "宋体";
objTable.Cell(14,2).Range.Text = '<% if("1".equals(data.getString("SFH3CRZ",""))){ out.print("已获得");}else if("0".equals(data.getString("SFH3CRZ"))){out.print("未获得");} %>';
objTable.Cell(14, 2).Merge(objTable.Cell(15, 2));
objTable.Cell(14,3).Range.Font.Bold = 9999998;
objTable.Cell(14,3).Range.Font.Size = 10;
objTable.Cell(14,3).Range.Font.Name = "宋体";
objTable.Cell(14,3).Range.Text = "已获得3C证书状态:";
objTable.Cell(14, 3).Merge(objTable.Cell(15, 3));
objTable.Cell(14,4).Range.Font.Bold = 9999998;
objTable.Cell(14,4).Range.Font.Size = 10;
objTable.Cell(14,4).Range.Font.Name = "宋体";
objTable.Cell(14,4).Range.Text = "有效期";
objTable.Cell(14,5).Range.Font.Bold = 0000000;
objTable.Cell(14,5).Range.Font.Size = 10;
objTable.Cell(14,5).Range.Font.Name = "宋体";
objTable.Cell(14,5).Range.Text = '<%=data.getString("YH3CYXS")%>';
//第十五行
objTable.Cell(15,4).Range.Font.Bold = 9999998;
objTable.Cell(15,4).Range.Font.Size = 10;
objTable.Cell(15,4).Range.Font.Name = "宋体";
objTable.Cell(15,4).Range.Text = "有效期";
objTable.Cell(15,5).Range.Font.Bold = 0000000;
objTable.Cell(15,5).Range.Font.Size = 10;
objTable.Cell(15,5).Range.Font.Name = "宋体";
objTable.Cell(15,5).Range.Text = '<%=data.getString("YH3CWXS")%>';
//第十六行
//objTable.Cell(9,1).Range.HorizontalAlignment = 3;
objTable.Cell(16,1).Range.Font.Bold = 9999998;
objTable.Cell(16,1).Range.Font.Size = 10;
objTable.Cell(16,1).Range.Font.Name = "宋体";
objTable.Cell(16,1).Range.Text = "3C认证获证单元:";
objTable.Cell(16, 1).Merge(objTable.Cell(17, 1));
objTable.Cell(16, 1).Merge(objTable.Cell(18, 1));
objTable.Cell(16,2).Range.Font.Bold = 9999998;
objTable.Cell(16,2).Range.Font.Size = 10;
objTable.Cell(16,2).Range.Font.Name = "宋体";
objTable.Cell(16,2).Range.Text = "应获数量:";
objTable.Cell(16,3).Range.Font.Bold = 0000000;
objTable.Cell(16,3).Range.Font.Size = 10;
objTable.Cell(16,3).Range.Font.Name = "宋体";
objTable.Cell(16,3).Range.Text = '<%=data.getString("TCYHSL")%>';
objTable.Cell(16, 3).Merge(objTable.Cell(16, 5));
//第十七行
objTable.Cell(17,2).Range.Font.Bold = 9999998;
objTable.Cell(17,2).Range.Font.Size = 10;
objTable.Cell(17,2).Range.Font.Name = "宋体";
objTable.Cell(17,2).Range.Text = "已获数量:";
objTable.Cell(17,3).Range.Font.Bold = 0000000;
objTable.Cell(17,3).Range.Font.Size = 10;
objTable.Cell(17,3).Range.Font.Name = "宋体";
objTable.Cell(17,3).Range.Text = '<%=data.getString("TCYIHSL")%>';
objTable.Cell(17, 3).Merge(objTable.Cell(17, 5));
//第十八行
objTable.Cell(18,2).Range.Font.Bold = 9999998;
objTable.Cell(18,2).Range.Font.Size = 10;
objTable.Cell(18,2).Range.Font.Name = "宋体";
objTable.Cell(18,2).Range.Text = "未获数量:";
objTable.Cell(18,3).Range.Font.Bold = 0000000;
objTable.Cell(18,3).Range.Font.Size = 10;
objTable.Cell(18,3).Range.Font.Name = "宋体";
objTable.Cell(18,3).Range.Text = '<%=data.getString("TCWHSL")%>';
objTable.Cell(18, 3).Merge(objTable.Cell(18, 5));
//第十九行
objTable.Cell(19,1).Range.Font.Bold = 9999998;
objTable.Cell(19,1).Range.Font.Size = 10;
objTable.Cell(19,1).Range.Font.Name = "宋体";
objTable.Cell(19,1).Range.Text = "其他认证项目:";
objTable.Cell(19,2).Range.Font.Bold = 0000000;
objTable.Cell(19,2).Range.Font.Size = 10;
objTable.Cell(19,2).Range.Font.Name = "宋体";
objTable.Cell(19,2).Range.Text = '<%=data.getString("QTRZXM")%>';
objTable.Cell(19,3).Range.Font.Bold = 9999998;
objTable.Cell(19,3).Range.Font.Size = 10;
objTable.Cell(19,3).Range.Font.Name = "宋体";
objTable.Cell(19,3).Range.Text = "证书编号:";
objTable.Cell(19,4).Range.Font.Bold = 0000000;
objTable.Cell(19,4).Range.Font.Size = 10;
objTable.Cell(19,4).Range.Font.Name = "宋体";
objTable.Cell(19,4).Range.Text = '<%=data.getString("ZSBH")%>';
objTable.Cell(19, 4).Merge(objTable.Cell(19, 5));
//第二十行
objTable.Cell(20,1).Range.Font.Bold = 9999998;
objTable.Cell(20,1).Range.Font.Size = 10;
objTable.Cell(20,1).Range.Font.Name = "宋体";
objTable.Cell(20,1).Range.Text = "证书有效期:";
objTable.Cell(20,2).Range.Font.Bold = 0000000;
objTable.Cell(20,2).Range.Font.Size = 10;
objTable.Cell(20,2).Range.Font.Name = "宋体";
objTable.Cell(20,2).Range.Text = '<%=data.getString("ZSYXQ")%>';
objTable.Cell(20, 2).Merge(objTable.Cell(20, 5));
//第二十一行
objTable.Cell(21,1).Range.Font.Bold = 9999998;
objTable.Cell(21,1).Range.Font.Size = 10;
objTable.Cell(21,1).Range.Font.Name = "宋体";
objTable.Cell(21,1).Range.Text = "企业生产执行标准:";
objTable.Cell(21,2).Range.Font.Bold = 0000000;
objTable.Cell(21,2).Range.Font.Size = 10;
objTable.Cell(21,2).Range.Font.Name = "宋体";
objTable.Cell(21,2).Range.Text = '<%="1".equals(data.getString("ZXBZGZBZ",""))?"国家标准 ":""%><%="1".equals(data.getString("ZXBZHYBZ",""))?"\\n行业标准 ":""%><%="1".equals(data.getString("ZXBZDFBZ",""))?"\\n地方标准 ":""%><%="1".equals(data.getString("ZXBZQYBZ",""))?"\\n企业标准 ":""%><%="1".equals(data.getString("ZXBZWB",""))?"\\n无标准 ":""%>';
objTable.Cell(21,3).Range.Font.Bold = 9999998;
objTable.Cell(21,3).Range.Font.Size = 10;
objTable.Cell(21,3).Range.Font.Name = "宋体";
objTable.Cell(21,3).Range.Text = "是否加入中国产品电子监管网:";
objTable.Cell(21,4).Range.Font.Bold = 0000000;
objTable.Cell(21,4).Range.Font.Size = 10;
objTable.Cell(21,4).Range.Font.Name = "宋体";
objTable.Cell(21,4).Range.Text = '<% if("1".equals(data.getString("SFJRZGCPDZJGW",""))){ out.print("是");}else if("0".equals(data.getString("SFJRZGCPDZJGW"))){out.print("否");} %>';
objTable.Cell(21, 4).Merge(objTable.Cell(21, 5));
//第二十二行
objTable.Cell(22,1).Range.Font.Bold = 9999998;
objTable.Cell(22,1).Range.Font.Size = 10;
objTable.Cell(22,1).Range.Font.Name = "宋体";
objTable.Cell(22,1).Range.Text = "原材料进场验收形式:";
objTable.Cell(22,2).Range.Font.Bold = 0000000;
objTable.Cell(22,2).Range.Font.Size = 10;
objTable.Cell(22,2).Range.Font.Name = "宋体";
objTable.Cell(22,2).Range.Text = '<%="1".equals(data.getString("YSXSQYZJ",""))?"企业自检 ":""%><%="1".equals(data.getString("YSXSWTQTJGJY",""))?"委托其他机构检验 ":""%><%="1".equals(data.getString("YSXSHGZMWJ",""))?"查验供货单位和各证明文件 ":""%><%="1".equals(data.getString("YSXXXSBG",""))?"不进行任何形式的把关":""%>';
objTable.Cell(22, 2).Merge(objTable.Cell(22, 5));
//第二十三行
objTable.Cell(23,1).Range.Font.Bold = 9999998;
objTable.Cell(23,1).Range.Font.Size = 10;
objTable.Cell(23,1).Range.Font.Name = "宋体";
objTable.Cell(23,1).Range.Text = "产品出厂检验方式:";
objTable.Cell(23,2).Range.Font.Bold = 0000000;
objTable.Cell(23,2).Range.Font.Size = 10;
objTable.Cell(23,2).Range.Font.Name = "宋体";
objTable.Cell(23,2).Range.Text = '<%="1".equals(data.getString("JYFSWTQTJGJY",""))?"委托其他机构检验 ":""%><%="1".equals(data.getString("JYFSQYZJ",""))?"企业自检 ":""%><%="1".equals(data.getString("JYFSBFZJ",""))?"部分自检 ":""%><%="1".equals(data.getString("JYFSCCJY",""))?"出厂检验":""%>';
objTable.Cell(23, 2).Merge(objTable.Cell(23, 5));
//第二十四行
objTable.Cell(24,1).Range.Font.Bold = 9999998;
objTable.Cell(24,1).Range.Font.Size = 10;
objTable.Cell(24,1).Range.Font.Name = "宋体";
objTable.Cell(24,1).Range.Text = "是否名牌产品生产企业:";
objTable.Cell(24,2).Range.Font.Bold = 0000000;
objTable.Cell(24,2).Range.Font.Size = 10;
objTable.Cell(24,2).Range.Font.Name = "宋体";
objTable.Cell(24,2).Range.Text = '<%="1".equals(data.getString("GJMP",""))?"国家名牌 ":""%><%="1".equals(data.getString("SMP",""))?"省名牌 ":""%><%="1".equals(data.getString("QTMP",""))?"其他":""%>';
objTable.Cell(24, 2).Merge(objTable.Cell(24, 5));
//第二十五行
objTable.Cell(25,1).Range.Font.Bold = 9999998;
objTable.Cell(25,1).Range.Font.Size = 10;
objTable.Cell(25,1).Range.Font.Name = "宋体";
objTable.Cell(25,1).Range.Text = "产品信息";
objTable.Cell(25, 1).Merge(objTable.Cell(25, 5));
objTable.Cell(25,1).Height = 18;
//第二十六行
objTable.Cell(26,1).Range.Font.Bold = 9999998;
objTable.Cell(26,1).Range.Font.Size = 10;
objTable.Cell(26,1).Range.Font.Name = "宋体";
objTable.Cell(26,1).Range.Text = "产品类别";
objTable.Cell(26, 1).Merge(objTable.Cell(26,2));
objTable.Cell(26,2).Range.Font.Bold = 9999998;
objTable.Cell(26,2).Range.Font.Size = 10;
objTable.Cell(26,2).Range.Font.Name = "宋体";
objTable.Cell(26,2).Range.Text = "产品名称";
objTable.Cell(26, 2).Merge(objTable.Cell(26,4));
//第二十七行
<%
if( y ==0){
map.put("无","");
}
System.out.println("map="+y);
y = map.size();
for (int o=0;o<y;o++){
Iterator it = map.keySet().iterator();
String cplb = (String)it.next();
String cpmc =(String)map.get(cplb);;
%>
objTable.Rows.add(objTable.Cell(27,2));
objTable.Rows.add(objTable.Cell(27,2));
objTable.Cell(<%=27+o%>,1).Range.Font.Bold = 9999998;
objTable.Cell(<%=27+o%>,1).Range.Font.Size = 10;
objTable.Cell(<%=27+o%>,1).Range.Font.Name = "宋体";
objTable.Cell(<%=27+o%>,1).Range.Text = "<%=cplb%>";
objTable.Cell(<%=27+o%>, 1).Merge(objTable.Cell(<%=27+o%>, 2));
objTable.Cell(<%=28+o%>, 1).Merge(objTable.Cell(<%=28+o%>, 2));
objTable.Cell(<%=27+o%>, 1).Merge(objTable.Cell(<%=28+o%>, 1));
objTable.Cell(<%=27+o%>,2).Range.Font.Bold = 0000000;
objTable.Cell(<%=27+o%>,2).Range.Font.Size = 10;
objTable.Cell(<%=27+o%>,2).Range.Font.Name = "宋体";
objTable.Cell(<%=27+o%>,2).Range.Text = "<%=cpmc%>";
objTable.Cell(<%=27+o%>, 2).Merge(objTable.Cell(<%=27+o%>, 4));
objTable.Cell(<%=28+o%>, 2).Merge(objTable.Cell(<%=28+o%>, 4));
objTable.Cell(<%=27+o%>, 2).Merge(objTable.Cell(<%=28+o%>, 2));
<% }%>
u=<%=y%>;
//alert("u="+u);
//第二十八行
/* objTable.Cell(<%=28-1+y%>,1).Range.Font.Bold = 9999998;
objTable.Cell(<%=28-1+y%>,1).Range.Font.Size = 10;
objTable.Cell(<%=28-1+y%>,1).Range.Font.Name = "宋体";
objTable.Cell(<%=28-1+y%>,1).Range.Text = "数据库字段";
objTable.Cell(<%=28-1+y%>, 1).Merge(objTable.Cell(<%=28-1+y%>, 2));
objTable.Cell(<%=28-1+y%>,2).Range.Font.Bold = 9999998;
objTable.Cell(<%=28-1+y%>,2).Range.Font.Size = 10;
objTable.Cell(<%=28-1+y%>,2).Range.Font.Name = "宋体";
objTable.Cell(<%=28-1+y%>,2).Range.Text = "数据库字段";
objTable.Cell(<%=28-1+y%>, 2).Merge(objTable.Cell(<%=28-1+y%>, 4));*/
//第二十九行
objTable.Cell(<%=27+y%>,1).Range.Font.Bold = 9999998;
objTable.Cell(<%=27+y%>,1).Range.Font.Size = 10;
objTable.Cell(<%=27+y%>,1).Range.Font.Name = "宋体";
objTable.Cell(<%=27+y%>,1).Range.Text = "经济类型:";
objTable.Cell(<%=27+y%>,2).Range.Font.Bold = 0000000;
objTable.Cell(<%=27+y%>,2).Range.Font.Size = 10;
objTable.Cell(<%=27+y%>,2).Range.Font.Name = "宋体";
<%
String jjlx = data.getString("JJLX","");
String jjlxmc = "";
if("1".equals(jjlx)){
jjlxmc = "国有";
}else if("2".equals(jjlx)){
jjlxmc = "个体";
}else if("3".equals(jjlx)){
jjlxmc = "集体";
}else if("4".equals(jjlx)){
jjlxmc = "股份";
}else if("5".equals(jjlx)){
jjlxmc = "私营";
}else if("6".equals(jjlx)){
jjlxmc = "三资";
}else if("7".equals(jjlx)){
jjlxmc = "其他";
}
%>
objTable.Cell(<%=27+y%>,2).Range.Text = '<%=jjlxmc%>';
objTable.Cell(<%=27+y%>, 2).Merge(objTable.Cell(<%=27+y%>, 5));
//第三十行
<%
String qysczk = data.getString("QYSCZK","");
String qysczkmc = "";
if("1".equals(qysczk)){
qysczkmc = "正常生产";
}else if("2".equals(qysczk)){
qysczkmc = "季节性停产";
}else if("3".equals(qysczk)){
qysczkmc = "停产";
}
%>
objTable.Cell(<%=28+y%>,1).Range.Font.Bold = 9999998;
objTable.Cell(<%=28+y%>,1).Range.Font.Size = 10;
objTable.Cell(<%=28+y%>,1).Range.Font.Name = "宋体";
objTable.Cell(<%=28+y%>,1).Range.Text = "企业生产状况:";
objTable.Cell(<%=28+y%>,2).Range.Font.Bold = 0000000;
objTable.Cell(<%=28+y%>,2).Range.Font.Size = 10;
objTable.Cell(<%=28+y%>,2).Range.Font.Name = "宋体";
objTable.Cell(<%=28+y%>,2).Range.Text = '<%=qysczkmc%>';
objTable.Cell(<%=28+y%>, 2).Merge(objTable.Cell(<%=28+y%>, 5));
//第三十一行
<%
String schqyglfl = data.getString("SCHQYGLFL","");
String schqyglflmc = "";
if("1".equals(schqyglfl)){
schqyglflmc = "A类";
}else if("2".equals(schqyglfl)){
schqyglflmc = "B类";
}else if("3".equals(schqyglfl)){
schqyglflmc = "C类";
}
%>
objTable.Cell(<%=29+y%>,1).Range.Font.Bold = 9999998;
objTable.Cell(<%=29+y%>,1).Range.Font.Size = 10;
objTable.Cell(<%=29+y%>,1).Range.Font.Name = "宋体";
objTable.Cell(<%=29+y%>,1).Range.Text = "核查后企业管理分类:";
objTable.Cell(<%=29+y%>,2).Range.Font.Bold = 0000000;
objTable.Cell(<%=29+y%>,2).Range.Font.Size = 10;
objTable.Cell(<%=29+y%>,2).Range.Font.Name = "宋体";
objTable.Cell(<%=29+y%>,2).Range.Text = '<%=schqyglflmc%>';
objTable.Cell(<%=29+y%>, 2).Merge(objTable.Cell(<%=29+y%>, 5));
//第三十二行
<%
String jnsjysccqk = data.getString("JNSJYSCCQK","");
String jnsjysccqkmc = "";
if("1".equals(jnsjysccqk)){
jnsjysccqkmc = "未进行过抽查";
}else if("2".equals(jnsjysccqk)){
jnsjysccqkmc = "抽查无不合格记录";
}else if("3".equals(jnsjysccqk)){
jnsjysccqkmc = "又一次不合格记录";
}else if("4".equals(jnsjysccqk)){
jnsjysccqkmc = "有两次不合格记录";
}else if("5".equals(jnsjysccqk)){
jnsjysccqkmc = "有三次不合格记录";
}
%>
objTable.Cell(<%=30+y%>,1).Range.Font.Bold = 9999998;
objTable.Cell(<%=30+y%>,1).Range.Font.Size = 10;
objTable.Cell(<%=30+y%>,1).Range.Font.Name = "宋体";
objTable.Cell(<%=30+y%>,1).Range.Text = "今年市级以上抽查情况:";
objTable.Cell(<%=30+y%>,2).Range.Font.Bold = 0000000;
objTable.Cell(<%=30+y%>,2).Range.Font.Size = 10;
objTable.Cell(<%=30+y%>,2).Range.Font.Name = "宋体";
objTable.Cell(<%=30+y%>,2).Range.Text = '<%=jnsjysccqkmc%>';
objTable.Cell(<%=30+y%>, 2).Merge(objTable.Cell(<%=30+y%>, 5));
//第三十三行
objTable.Cell(<%=31+y%>,1).Range.Font.Bold = 9999998;
objTable.Cell(<%=31+y%>,1).Range.Font.Size = 10;
objTable.Cell(<%=31+y%>,1).Range.Font.Name = "宋体";
objTable.Cell(<%=31+y%>,1).Range.Text = "备注:";
objTable.Cell(<%=31+y%>, 1).Merge(objTable.Cell(<%=32+y%>, 1));
objTable.Cell(<%=31+y%>,2).Range.Font.Bold = 0000000;
objTable.Cell(<%=31+y%>,2).Range.Font.Size = 10;
objTable.Cell(<%=31+y%>,2).Range.Font.Name = "宋体";
objTable.Cell(<%=31+y%>,2).Range.Text = '<%=data.getString("BZ")%>';
objTable.Cell(<%=31+y%>, 2).Merge(objTable.Cell(<%=31+y%>, 5));
objTable.Cell(<%=32+y%>, 2).Merge(objTable.Cell(<%=32+y%>, 5));
objTable.Cell(<%=31+y%>, 2).Merge(objTable.Cell(<%=32+y%>, 2));
<%} else {%>
objTable.Cell(2,2).Range.Text = '<%=data.getString("QYMC")%>';
objTable.Cell(3,2).Range.Text = '<%=Dictionary.value(dictMap,"101001",data.getString("SHI"))%><%=Dictionary.value(dictMap,"101001",data.getString("XIAN"))%><%=data.getString("SZDXXDZ")%>';
objTable.Cell(4,2).Range.Text = '<%=data.getString("FRDBHFZR")%>';
objTable.Cell(4,4).Range.Text = '<%=data.getString("QYRS")%>人';
objTable.Cell(5,2).Range.Text = '<%=data.getString("LXDH")%>';
objTable.Cell(5,4).Range.Text = '<%=data.getString("YZBM")%>';
objTable.Cell(6,2).Range.Text = '<% if("1".equals(data.getString("YYZZ",""))){ out.print("有");}else if("0".equals(data.getString("YYZZ"))){out.print("无");} %>';
objTable.Cell(6,4).Range.Text = '<%=data.getString("YYZZBH")%>';
objTable.Cell(7,2).Range.Text = '<% if("1".equals(data.getString("QYDMZ",""))){ out.print("有");}else if("0".equals(data.getString("QYDMZ"))){out.print("无");} %>';
objTable.Cell(7,4).Range.Text = '<%=data.getString("QYDMZBH")%>';
objTable.Cell(8,2).Range.Text = '<% if("1".equals(data.getString("SFHDGYCPSCXKZ",""))){ out.print("已获得");}else if("0".equals(data.getString("SFHDGYCPSCXKZ"))){out.print("未获得");}%>';
objTable.Cell(8,4).Range.Text = '<%=data.getString("GYCPSCXKZBH")%>';
objTable.Cell(9,3).Range.Text = '<%=data.getString("YHSL")%>';
objTable.Cell(10,3).Range.Text = '<%=data.getString("YHSL")%>';
objTable.Cell(11,3).Range.Text = '<%=data.getString("WHSL")%>';
objTable.Cell(12,2).Range.Text = '<% if("1".equals(data.getString("CPZLSFHDMJ",""))){ out.print("已获得");}else if("0".equals(data.getString("CPZLSFHDMJ"))){out.print("未获得");}%>';
objTable.Cell(12,4).Range.Text = '<%=data.getString("MJZSBH")%>';
objTable.Cell(13,2).Range.Text = '<%=data.getString("MJZSYXQ")%>';
objTable.Cell(14,2).Range.Text = '<% if("1".equals(data.getString("SFH3CRZ",""))){ out.print("已获得");}else if("0".equals(data.getString("SFH3CRZ"))){out.print("未获得");} %>';
objTable.Cell(14,5).Range.Text = '<%=data.getString("YH3CYXS")%>';
objTable.Cell(15,5).Range.Text = '<%=data.getString("YH3CWXS")%>';
objTable.Cell(16,3).Range.Text = '<%=data.getString("TCYHSL")%>';
objTable.Cell(17,3).Range.Text = '<%=data.getString("TCYIHSL")%>';
objTable.Cell(18,3).Range.Text = '<%=data.getString("TCWHSL")%>';
objTable.Cell(19,2).Range.Text = '<%=data.getString("QTRZXM")%>';
objTable.Cell(19,4).Range.Text = '<%=data.getString("ZSBH")%>';
objTable.Cell(20,2).Range.Text = '<%=data.getString("ZSYXQ")%>';
objTable.Cell(21,2).Range.Text = '<%="1".equals(data.getString("ZXBZGZBZ",""))?"国家标准 ":""%><%="1".equals(data.getString("ZXBZHYBZ",""))?"\\n行业标准 ":""%><%="1".equals(data.getString("ZXBZDFBZ",""))?"\\n地方标准 ":""%><%="1".equals(data.getString("ZXBZQYBZ",""))?"\\n企业标准 ":""%><%="1".equals(data.getString("ZXBZWB",""))?"\\n无标准 ":""%>';
objTable.Cell(21,4).Range.Text = '<% if("1".equals(data.getString("SFJRZGCPDZJGW",""))){ out.print("是");}else if("0".equals(data.getString("SFJRZGCPDZJGW"))){out.print("否");} %>';
objTable.Cell(22,2).Range.Text = '<%="1".equals(data.getString("YSXSQYZJ",""))?"企业自检 ":""%><%="1".equals(data.getString("YSXSWTQTJGJY",""))?"委托其他机构检验 ":""%><%="1".equals(data.getString("YSXSHGZMWJ",""))?"查验供货单位和各证明文件 ":""%><%="1".equals(data.getString("YSXXXSBG",""))?"不进行任何形式的把关":""%>';
objTable.Cell(23,2).Range.Text = '<%="1".equals(data.getString("JYFSWTQTJGJY",""))?"委托其他机构检验 ":""%><%="1".equals(data.getString("JYFSQYZJ",""))?"企业自检 ":""%><%="1".equals(data.getString("JYFSBFZJ",""))?"部分自检 ":""%><%="1".equals(data.getString("JYFSCCJY",""))?"出厂检验":""%>';
objTable.Cell(24,2).Range.Text = '<%="1".equals(data.getString("GJMP",""))?"国家名牌 ":""%><%="1".equals(data.getString("SMP",""))?"省名牌 ":""%><%="1".equals(data.getString("QTMP",""))?"其他":""%>';
//alert("u="+u);
if(u != 1){
objTable.Cell(27, 1).Merge(objTable.Cell(26+u, 1));
objTable.Cell(27, 2).Merge(objTable.Cell(26+u, 2));
objTable.Cell(27,1).Height = 30;
}
<%
if( y ==0){
map.put("无","");
}
y = map.size();
for (int o=0;o<y;o++){
Iterator it = map.keySet().iterator();
String cplb = (String)it.next();
String cpmc =(String)map.get(cplb);;
%>
if( <%=y%>>1 && o < <%=y%>-1 )
objTable.Rows.add(objTable.Cell(27,2));
objTable.Cell(<%=27+o%>,1).Range.Text = "<%=cplb%>";
objTable.Cell(<%=27+o%>,2).Range.Text = "<%=cpmc%>";
<%}%>
u=<%=y%>;
<%
String jjlx = data.getString("JJLX","");
String jjlxmc = "";
if("1".equals(jjlx)){
jjlxmc = "国有";
}else if("2".equals(jjlx)){
jjlxmc = "个体";
}else if("3".equals(jjlx)){
jjlxmc = "集体";
}else if("4".equals(jjlx)){
jjlxmc = "股份";
}else if("5".equals(jjlx)){
jjlxmc = "私营";
}else if("6".equals(jjlx)){
jjlxmc = "三资";
}else if("7".equals(jjlx)){
jjlxmc = "其他";
}
%>
objTable.Cell(<%=27+y%>,2).Range.Text = '<%=jjlxmc%>';
<%
String qysczk = data.getString("QYSCZK","");
String qysczkmc = "";
if("1".equals(qysczk)){
qysczkmc = "正常生产";
}else if("2".equals(qysczk)){
qysczk
相关推荐
根据提供的文件信息,我们可以归纳出以下...综上所述,通过JavaScript操作Word文档是一种高效且实用的方法,特别是在需要快速生成报表或文档的场景下。了解并掌握这些技术点可以帮助开发者更好地应对实际开发中的挑战。
首先,JS操作Word的核心在于利用ActiveXObject或Office.js。ActiveXObject是Internet Explorer特有的技术,它允许JavaScript对象与Windows操作系统中的其他对象进行交互,如Word应用。而Office.js是Microsoft Office...
这篇博文“用JS操作WORD、EXCEL导出”探讨了如何利用JavaScript进行文档处理,这对于需要在网页上实现办公文档的创建、编辑和导出功能的开发者来说是非常实用的知识点。 首先,我们要了解JavaScript如何与Office...
以上就是JavaScript操作Word进行打印、导出表单以及动态创建表格的详细解释。在实际应用中,需要考虑兼容性问题,因为不是所有浏览器都支持ActiveXObject。对于不支持的浏览器,可以考虑使用Web API、PDF生成库或...
总的来说,JavaScript操作Word和Excel是一种特定环境下实现文件处理的方式,虽然有一定的局限性,但在某些场景下仍具有实用性。随着Web技术的发展,更多的解决方案如基于云的API和服务正在成为主流。
首先,针对JS操作Word,我们可以利用ActiveXObject,这是一个仅在Internet Explorer中可用的对象,允许JavaScript与Windows应用程序进行交互。在给出的示例代码中,创建了一个新的Word应用程序实例: ```javascript...
### JavaScript操作Word和Excel的实现代码 #### 一、JavaScript操作Word文档的实现方法 根据提供的部分代码,我们可以深入分析并总结出如何使用JavaScript来操作Word文档。 ##### 1. 创建Word文档 在JavaScript...
### JS中操作Word文档知识点详解 #### 一、概述 在Web开发中,有时我们需要实现对Microsoft Word文档的操作,例如创建、编辑或保存Word文档等。JavaScript作为一种广泛使用的客户端脚本语言,在某些场景下可以与...
js操作word标签,实现动态组装数据,并生成word文档
### JavaScript操作Word和Excel的实现方法 #### 一、JavaScript操作Word文档 ##### 1.1 保存HTML页面到Word文档 在Web开发中,有时我们需要将网页内容导出为Word文档格式,以便用户能够方便地下载或打印。下面是...
在这个场景中,我们主要关注如何通过JS操作Word模板,替换其中的文字和图片,并调整图片的大小。下面将详细阐述这一过程。 首先,要实现JS调用Word模板,我们可以利用Microsoft提供的Office JavaScript API。这个...
在JavaScript(JS)中直接调用Word文档进行打印主要涉及到Web应用程序与本地文件系统的交互以及浏览器的安全限制。本文将深入探讨这一主题,并提供一些实现这一功能的方法。 首先,理解JavaScript在浏览器环境中的...
JavaScript Word 插件是一种在网页端处理文档的强大工具,它允许用户在浏览器环境中创建、编辑和操作Microsoft Word文档。在现代Web应用中,这种技术尤其适用于在线协作、文档分享和远程工作场景。以下是对这个“js ...
资源名称:Javascript数组及其操作 WORD版内容简介:本文档主要讲述的是Javascript数组及其操作;希望本文档会给有需要的朋友带来帮助;感兴趣的朋友可以过来看看 资源太大,传百度网盘了,链接在附件中,有...
1. **Node.js**: Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境,它使得开发者可以在服务器端使用 JavaScript 编程,从而实现了JavaScript的全栈开发能力。Node.js 具有非阻塞I/O模型和高效的事件驱动,...
在探讨如何用JavaScript操作Word之前,我们首先要了解,这通常涉及到使用Office对象模型。在IE浏览器中,可以使用ActiveX控件的方式访问Word等Office应用程序;在其他浏览器中,则可以通过Office JavaScript API,该...
压缩包中的`jquery_1.12.4_jquery.min.js`是jQuery库,它简化了DOM操作和事件处理;`FileSaver.js`用于在浏览器中保存文件;`jquery.wordexport.js`则是专门用于HTML到Word转换的插件。 **HTML转Word的核心步骤:**...
打开与操作Word文档 通过`myDocApp.documents.open(href)`语句,可以打开指定URL或路径的Word文档。这里,`href`变量存储了文档的位置信息,它可以是网络地址或本地文件路径。一旦文档被打开,就可以利用Word应用...
在Office.js中,你可以访问`context.document.sections[0].headers.default`来操作默认页眉。设置固定页眉可能包括添加文本、图像等元素,并确保它们在每一页上都可见。 在实践中,你可能还需要处理样式、字体、...