WordApplication.Documents.Open( FileName, ConfirmConversions,
ReadOnly, AddToRecentFiles, PasswordDocument, PasswordTemplate,
Revert, WritePasswordDocument, WritePasswordTemplate, Format );
*)
//***************************
{Assign WordDocument component}
//连接word里新建的第一个document文档
WordDocument.ConnectTo(WordApplication.Documents.Item(ItemIndex));
//设定文档模式
{Turn Spell checking of because it takes a long time if enabled and
slows down
Winword}
WordApplication.Options.CheckSpellingAsYouType := False;
WordApplication.Options.CheckGrammarAsYouType := False;
//..........
//*************************
//给文档添加内容{Insert data}
//********************
//插入图片
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/