I am having trouble running the code listed below in a dll that I am calling from ASP. Can anyone see what I could be missing. I am using the Microsoft Office Object 10.0 Reference as well as the Microsoft Word Object 10.0 reference. Any suggestions would be very helpful. Also note that this code runs fine in a Standard VB6 exe.
Dim Word
If Dir(dstTXTfile) <> "" Then
Kill dstTXTfile
End If
Set Word = CreateObject("Word.Application")
Word.Documents.Open(srcRTFfile).SaveAs dstTXTfile, 2
Word.Quit
Set Word = Nothing
Thanks
Dim Word
If Dir(dstTXTfile) <> "" Then
Kill dstTXTfile
End If
Set Word = CreateObject("Word.Application")
Word.Documents.Open(srcRTFfile).SaveAs dstTXTfile, 2
Word.Quit
Set Word = Nothing
Thanks