Printing different size sheets

I am looking for a macro that will figure out what size paperI am usings on the sheet and then choose the correct printer andpaper size so I do not have to go through all my sheets and printone by one.SolidworksApi macros