Draftsight API Print Manager

I am trying to create a program that will print drawings. the issue that i am having is the dsPrintMgr.PaperSize command. I can not get any value to take in this command. I am taking the paper sizes directly from the available sizes in the Printer Properties. Namely I need to print a 11x17. Has anyone else had this issue. Is there a call that will allow me to see available sizes and names through the API?


I have referenced https://forum.solidworks.com/thread/218801 

 

for my coding