AX2009 creating Excel spreadsheets: “The number of arguments provided is different from the number of arguments accepted by the method”

When trying to create an Excel spreadsheet via code I encountered the error “The number of arguments provided is different from the number of arguments accepted by the method”.

Having not used the process for a while, but knowing it has worked in the past I was surprised by the error.

Continue reading