How to set up the printer and paper size

How to set up the printer and paper size using API
Thx, ChrisSolidworksApi macros