51Testing软件测试论坛

标题: How to creat a Doc file ??? (urgency) [打印本页]

作者: 7444    时间: 2008-4-14 13:26
标题: How to creat a Doc file ??? (urgency)
In the QTP scripts, I want to creat a Doc file ,how can to do it ?
作者: 雷声之前    时间: 2008-4-14 13:57
dim fs,f
const forwriting = 2
set fs = createobject("scripting.filesystemobject")
set f = fs.opentextfile("c:\123.doc",forwriting,true)
作者: hsjzfling    时间: 2008-4-14 15:21
ls的方法也可以,不过如果你要创建的是word文档的话,那么建议还是用word.application而非fso




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2