I have a printer that a list of available paper sizes is from producer. How do I set the PapierSize from the list in the code?

I have a printer that a list of available paper sizes is from producer. How do I set the PapierSize from the list in the code?
