您好,欢迎访问一九零五行业门户网

Add Formatted Text to a Word Document_javascript技巧

demonstration script that displays formatted data in a microsoft word document.
复制代码 代码如下:
set objword = createobject(word.application)
objword.visible = true
set objdoc = objword.documents.add()
set objselection = objword.selection
objselection.font.name = arial
objselection.font.size = 18
objselection.typetext network adapter report
objselection.typeparagraph()
objselection.font.size = 14
objselection.typetext  & date()
objselection.typeparagraph()
其它类似信息

推荐信息