Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

DSOfile X file on server

Status
Not open for further replies.

macPT

Mechanical
Oct 22, 2002
607
I'm now having a "little" problem. DSOfile does not work properly with files on server.

I run the macro locally (w2k SP2 with DSOfile installed) and the server (NT4, DSOfile not installed) as the file saved.

The result is: the file as no properties.

So the macro is mapping correctly the file, but it can't read the properties. If I make a copy of the same file to my local disk, the macro's result is correct (the file as properties after all).

Thanks for the help
 
Replies continue below

Recommended for you

My guess would be that DSOFile.dll does not work on NT4, meaning NT4 doesn't allow the properties...?

If you use the NT4 box and right click on the file, do you get the "Custom" tab when you click "Properties"?

If you don't then either NT4 doesn't do Custom Properties or the OS is making those files Read-Only...

I would try it, but I don't have an NT4 box anymore. I only got 2000 and XP

Let me know



Mr. Pickles
 
After some tests, I think that DSOfile does not work through a network. I have tried to access, from my computer, to a file in other W2K computer with DSOfile installed and the result is the same: the file is detecetd but the macro is unable to open the doc properties, resulting on a empty output.
 
macPT,

Post me your code for "pushing" the properties. I use DSOFile.dll to work with files on our server (through the network) every day.

Or, can you check the file from your code to report if it is "Read-Only"?

Mr. Pickles
 
DetroitPickles,

I'VE GOT IT!
After your message I was really curious about what I might be doing wrong and I found a simple error (isn't it allways like this?).
My code was something like this:
....
workDir = InputBox("working dir")
....
ChDir (workDir)
....
FichDir = Dir(workDir)
....
Set oDocProp = oFilePropReader.GetDocumentProperties_
FichDir)
....

Then I thought that maybe FichDir needed to have the full path. So, before the Set oDocProp line, I put the following:

FichDir = workDir & FichDir

And voilá! It's working.

Thanks
 
Sorry, I've made a typing error. the Set instruction is like that:

Set oDocProp = oFilePropReader.GetDocumentProperties(FichDir)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor