Microsoft.Office.Interop.MSProject - why are my files always locked (by me!) when I try to open them
Posted
by Anders Juul
on Stack Overflow
See other posts from Stack Overflow
or by Anders Juul
Published on 2010-01-14T12:35:50Z
Indexed on
2010/04/21
6:03 UTC
Read the original article
Hit count: 533
ms-project
|.NET
Hi all,
I'm trying to use Interop to manipulate MS Project 2003 (MPP) files.
My problem is that MS Project reports that the files is already opened by another user (me!) and that I can open it only as read-only.
Obviously, I've tried to restart studio, then windows (xp) but with no effect. The file attribute for Readonly is cleared on the file.
Any suggestions for what I might try?!
Thanks,
Anders
Imports Microsoft.Office.Interop.MSProject ... Dim app As ApplicationClass = New ApplicationClass() app.Visible = False Dim success As Boolean = app.FileOpen(fullPath, False)
© Stack Overflow or respective owner