Win32 / MS Binder
Mark Hammond
MarkH at ActiveState.com
Tue Apr 24 23:17:27 EDT 2001
Matthew Turk wrote:
> it says COM error - invalid argument. I'm pretty sure the keyword is
> correct - it's directly out of hte MS Help file, as well as I get
> invalid keyword errors when I try filename or Filename or fileName.
> Now, this obviously adds a specific file. But when I try to add a new
> section by *type* instead of by file, it works perfectly (i.e.
> binder.Sections.Add(Type = "Excel.Sheet") or some such).
Try opening the makepy generated file for the binder, and locate the lines:
defaultNamedOptArg=pythoncom.Missing
defaultNamedNotOptArg=pythoncom.Missing
defaultUnnamedArg=pythoncom.Missing
Change all 3 to use "pythoncom.Empty". If this fixes the problem please
let me know...
Mark.
More information about the Python-list
mailing list