Home > Web Front-end > JS Tutorial > Add Formatted Text to a Word Document_javascript技巧

Add Formatted Text to a Word Document_javascript技巧

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 19:12:32
Original
912 people have browsed it

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()



Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Add photos together in Add in the Data controller
From 1970-01-01 08:00:00
0
0
0
Can't add information
From 1970-01-01 08:00:00
0
0
0
add failed
From 1970-01-01 08:00:00
0
0
0
Why add True ?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template