js导出word,怎么设置word
用js导出html为word,有代码:
var oWD = new ActiveXObject("Word.Application");
var oDC = oWD.Documents.Add("",0,1);
var oRange =oDC.Range(0,1);
var sel = document.body.createTextRange();
sel.moveToElementText(ab);
sel.select();
sel.execCommand("Copy");
oRange.Paste();
oWD.Application.Visible = true;
可以修改word默认字体五号为其他字体吗?比如为小四
不是修改normal.dot模板,只是修改当前导出文档的。
多多给分啊,纠结很久了