Dave, Oddly the code only worked when I removed the "of window myWindowID" reference. Then it was fine. Otherwise I got the same error that you did. I am not sure if this is a bug or if export won't take a window id param for some reason.