标题: vbs生成的word文档手动打开时,提示“word cannot start。。。mswrd632” [打印本页] 作者: csj 时间: 2010-11-11 17:34 标题: vbs生成的word文档手动打开时,提示“word cannot start。。。mswrd632” vbs生成的word文档手动打开时,提示“word cannot start the converter mswrd632”,然后连续点击3下就能打开了,这个问题怎么解决?作者: Jun_Li 时间: 2010-11-12 08:48
Function CreateFile(sFilePath)
Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.CreateTextFile(sFilePath, True)
MyFile.WriteLine("This is testing")
MyFile.Close
End Function
CreateFile("D:\test.doc")
it's ok , 不知道LZ怎样操作的作者: feiyunkai 时间: 2010-11-12 09:43
'以下方法新建WORD打开也没有问题
CreateDoc "D:bbb.doc","这里是输入的内容"
Function CreateDoc(Filepath,Text)
Set Doc = CreateObject("Word.Application")
Set DocWord = Doc.Documents.Add()
Doc.Selection.TypeText Text
DocWord.saveas Filepath
DocWord.close
Doc.Quit
Set DocWord=nothing
Set Doc =nothing
End Function