* no user rights (i have sufficient rights) - If you are running this program in the wwwroot directory, I am sure that the default user is the IIS user which does not have ANY right to open or edit files outside of that directory.
*document name of path invalid (all path names are stored in the array) - This would be related to the problem above or make sure is the absolute path.
Hope that guide you in the right direction.
Main Topics
Browse All Topics





by: julianHPosted on 2004-10-08 at 07:03:17ID: 12258689
Not quite sure what you are trying to do - maybe post more source code. Also more information on the exact error you are getting would help.
tion")
StringPath (i))
I knocked this together very quickly
Dim WordApp As Word.Application
Dim actDoc As Word.Document
Dim arrStringPath(3) As String
Dim i As Integer
arrStringPath(1) = "d:\trash\docs\doc1.doc"
arrStringPath(2) = "d:\trash\docs\doc2.doc"
arrStringPath(3) = "d:\trash\docs\doc3.doc"
Set WordApp = CreateObject("Word.Applica
WordApp.ShowMe
For i = 1 To 3
Set actDoc = WordApp.Documents.Open(arr
actDoc.Close False
Next
WordApp.Quit False
Seems to work fine. Maybe add the Set command before actDoc = ...