手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >Add Formatted Text to a Word Document
Add Formatted Text to a Word Document
摘要:DemonstrationscriptthatdisplaysformatteddatainaMicrosoftWorddocument.复...

DemonstrationscriptthatdisplaysformatteddatainaMicrosoftWorddocument.

复制代码 代码如下:

SetobjWord=CreateObject("Word.Application")

objWord.Visible=True

SetobjDoc=objWord.Documents.Add()

SetobjSelection=objWord.Selection

objSelection.Font.Name="Arial"

objSelection.Font.Size="18"

objSelection.TypeText"NetworkAdapterReport"

objSelection.TypeParagraph()

objSelection.Font.Size="14"

objSelection.TypeText""&Date()

objSelection.TypeParagraph()

【Add Formatted Text to a Word Document】相关文章:

Angular发布1.5正式版,专注于向Angular 2的过渡

让焦点自动跳转

JavaScript基于setTimeout实现计数的方法

打印/预览/设置的客户端代码

百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换

简单的防盗链功能代码(iframe)

JavaScript获取两个数组交集的方法

jQuery中 prop() attr()使用详解

jQuery插件jRumble实现网页元素抖动

js+css实现回到顶部按钮(back to top)

精品推荐
分类导航