手机
当前位置:查字典教程网 >编程开发 >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】相关文章:

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

免费空间广告万能消除代码

VBScript版代码高亮

学习Javascript面向对象编程之封装

如何遍历对象的属性?

jQuery实现不断闪烁文字的方法

JavaScript中用getDate()方法返回指定日期的教程

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

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

JQuery中两个ul标签的li互相移动实现方法

精品推荐
分类导航