Sign in to follow this  
Followers 0

accessing a file from a zip file list

1 post in this topic

i access a list of files in a zip document. i manualy  open one which is a word document

i want to access the document with a script using the following code

$wordfile = "c:\users\user\desktop\" & $ftitle  ; where $ftitle is picked up from the document title

$oword = _word_create()

$owordapp = _word_docattach ($oword, $ftitle, "filename")        

if @error then 


$odoc = _word_docopen($owordapp, $wordfile)

msgbox(0,"",@error)  ; error returned is a 2

if i manually save the file to the desktop then everything works

for some reason the open can not find the file that is open on the desktop





Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0