Problems using wx.FileType and wx.Execute to open an MS Word document.

Robin-

The file definitely exists. Also, the code works as expected on XP
without SP2
and also on Windows 2003. I'd assumed that it was a "security issue"
introduced
when I installed SP2. However, I'll take a look at the installation of
MS Office
(the code also doesn't work with Excel files). Perhaps there is some
issue there.

Thanks

Kieran

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Wednesday, September 15, 2004 1:00 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Problems using wx.FileType and wx.Execute
to open an MS Word document.

Owens, Kieran wrote:

All-

I'm having problems using wx.FileType to open a Word document on
wxPython 2.4.2.4 on Win XP (SP2). I've included the piece of code

which

does the opening below but calling it with filename equal to
'c:\\TEST.DOC' causes a message box with the following message to be
displayed "DDE data request failed; a transaction failed".

It works here. Does c:\test.doc exist? Perhaps there is an install
problem with winword?

Calling the
same piece of code on a file with an extension of .eml works just

fine,

opening Outlook express as intended.

Because wx.Execute doesn't have to deal with DDE in that case, it just
executes a programwhich is much simpler to do.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

----------
Notice: This message contains information that may be confidential and/or privileged. If you are not the intended recipient, you should not use, disclose or take any action based on this message. This message does not constitute investment advice.