OLE Document Properties

Zan

New member
Joined
Mar 4, 2004
Messages
1
Location
Pennsylvania
I am using dsofile to get document properties for various Office files. This appears to leave the file(s) locked after I retrieve the information. Is there a way to eliminate this locking?

Should I even be using dsofile with VB.net? I am new to this. I read somewhere that the functionality of dsofile may already be included in .net but cannot find specifics.

Any information would be helpful.:confused:

Thanks
 
Zan said:
I am using dsofile to get document properties for various Office files. This appears to leave the file(s) locked after I retrieve the information. Is there a way to eliminate this locking?
I had the same problem, and solved this by releasing the com-object with
System.Runtime.InteropServices.Marshal.ReleaseComObject(ComObject), then calling GC.Collect() to ensure the objects are unloaded.

Zan said:
Should I even be using dsofile with VB.net? I am new to this. I read somewhere that the functionality of dsofile may already be included in .net but cannot find specifics.
AFAIK there is no Structured Storage or document summary related classes namespaces in .net framework.
Please correct me if I am wrong, as I am very interrested in replacing my unmanaged code with managed...

rgds
 
Back
Top