Does anybody know how to avoid the "Export Wizard" when saving a file with MSProject? The FileSaveAs method seems to ignore the Map keyword. My code looks essentially like this:

mp = Dispatch("MSProject.Application")
mp.FileOpen(mppFile)
mp.FileSaveAs(csvFile, Format=3, Map="My Export Map")
mp.FileClose(Save=0)
mp.FileQuit()

This gets the correct data into the file, but MSProject pops up the "Export Wizard" and forces me to select the map manually in order to complete the FileSaveAs() operation.

Other people seem have encountered the same problem, but I haven't seen a solution anywhere.

The only workaround I've found is to record this action as a macro and execute the macro:

mp = Dispatch("MSProject.Application")
mp.FileOpen(mppFile)
mp.Run("My Export Macro")
mp.FileClose(Save=0)
mp.FileQuit()


_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to