手机
当前位置:查字典教程网 >编程开发 >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去除浏览器默认底图的方法

VBScript版代码高亮

分享自己用JS做的扫雷小游戏

静态的动态续篇之来点XML

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

基于JavaScript实现动态添加删除表格的行

JavaScript中Number.MIN_VALUE属性的使用示例

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

JavaScript基于setTimeout实现计数的方法

Web开发必知Javascript技巧大全

精品推荐
分类导航