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 from DLL

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

Part and Inventory Search

Sponsor

Back
Top