F(x)

更新时间:
复制 MD 格式

open

open(file, visible=False)

Description

Opens a Word document.

Parameters

file <str> The file path.

visible <bool> Specifies whether the document is visible.

Return value

Return to the Word document <Word>

Sample Call: rpa.app.microsoft.word.open

# Note: Confirm that Microsoft software is installed before use.
# Example:
word_file_path = r"D:\2_TestFileArchive\TestWord.docx"
word = rpa.app.microsoft.word.open(word_file_path, visible=True)

create

create(visible=False)

Description

Creates a Word document.

Parameters

visible <bool> Specifies whether the document is visible.

Return value

Return to the Word document <Word>

Sample Call: rpa.app.microsoft.word.create

# Note: Confirm that Microsoft software is installed before use.
# Example:
word = rpa.app.microsoft.word.create(visible=True)