Skip to main content

Insert Text into Word

Command description

Inserts the specified text at the cursor position in the Word document.

Command Input Parameters

input parametersInput parameter typeDescription
Word ObjectWordApp
TextstrText to be inserted
FontstrFont name, such as SimSun
ColorstrHexadecimal RGB color value, such as #FF0000
SizenumberFont size, e.g. 11
BoldboolWhether to use bold text
ItalicboolWhether to use italic text
New LineboolWhether to insert a line break before the text

Command Output Parameters

None