Python COM vs Visual Basic COM

Kendall Dugger kwd at lawcomputing.com
Sun Sep 5 04:44:46 CEST 2004


Nope, I have tried r"c:\zebra.wpd" and also used the sys.os
module to test if the file  "c:\\zebra.wpd" exists prior to
running the COM stuff.

Python recognizes that the file is there.  It seems to be an
error with the COM calls themselves.

Thanks for the suggestion, but I'm still stumped.

It's really frustrating that it works flawlessly under VB,
but fails under Python with almost identical code.

-Kendall 

Dennis Lee Bieber wrote:
> 
> On 03 Sep 2004 12:31:04 EDT, Kendall Dugger <kwd at lawcomputing.com>
> declaimed the following in comp.lang.python:
> 
> > objWP.FileOpen("c:\\zebra.wpd", 1)
> 
>         Wild guess... Try without doubling the \, or use a single /
> instead.
> 
> --
>  > ============================================================== <
>  >   wlfraed at ix.netcom.com  | Wulfraed  Dennis Lee Bieber  KD6MOG <
>  >      wulfraed at dm.net     |       Bestiaria Support Staff       <
>  > ============================================================== <
>  >           Home Page: <http://www.dm.net/~wulfraed/>            <
>  >        Overflow Page: <http://wlfraed.home.netcom.com/>        <



More information about the Python-list mailing list