> "Tim" == Tim Roberts <[EMAIL PROTECTED]> writes:
>> Can anyone tell me why I'm getting this error message?
Tim> Yes, I can. You are trying to open a file name with a tab
Tim> character in it. That is, your file name is C colon tab E S T
Tim> dot M P P.
Tim> Use a.FileOpen( "C:\\test
D'oh! That's embarrasing.
a.FileOpen( r'C:\test.mpp' )
...works too.
I should have clued in to the double backslashes in the path in the
error. (I guess it goes without saying that I don't use Python on
Windows very often.)
Thanks Tim.
--
Daryl
On 5/30/07, Tim Roberts <[EMAIL PROTECTED]>
Daryl Spitzer wrote:
> I'm trying to open a Microsoft Project file using the following:
>
>
from win32com.client import Dispatch
a=Dispatch("MSProject.Application")
a.Visible=1
a.FileOpen("C:\test.mpp")
>
> ...but I get this error message.
>
> Traceback (most re