QTP面试题:如何用QTP打开word并录入内容

匿名网友 匿名网友 发布于: 2015-08-30 00:00:00
阅读 145 收藏 0 点赞 0 评论 0

Set wobj = CreateObject(”Word.Application”)
wobj.Visible = True
Set Doc = wobj.Documents.Add
Set Range = Doc.Paragraphs.Add.Range
Range.Text = “The first Paragraph”
Doc.Paragraphs.Add
Set Range2 = Doc.Paragraphs.Add.Range
Range2.Text = “The second Paragraph”

评论列表
文章目录