Set printer and paper size by macro

Guys,

I recorded a macro which do printing, I assigned a shortcut key for the macro.

It works, but I want to print to printer A with paper size = letter and I want print to printer B with 11x17. I don't mind to use two macros and assign two keyboard shortcut. However, how to set the printer and paper size

SolidworksApi macros