Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling Word to convert file

Status
Not open for further replies.

yeagly21

Programmer
Dec 11, 2003
23
US
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. This code runs fine in a Standard VB6 exe. Any suggestions would be very helpful.

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
Yeagly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top