开发者

Microsoft.Office.Interop.MSProject - why are my files always locked (by me!) when I try to open them?

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开发者_StackOverflow Dim success As Boolean = app.FileOpen(fullPath, False)


tow things came to my mind, first see if in your code your opening the file elsewhere. second see if there is a process in the background using the file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜