Setting the media type on a printer in windows using C#


I'm trying to write a program using the net5.0-windows framework (C#) that allows me to print my documents in different media types.

I can set almost everything via the System.Printing printDocument class but can't seem to change the media type to something else like in the image below

printer preferences


How can I force the printDocument to set the media type to something else on the list? or possibly a custom string or MediaType?

Update 2

Can this be done using DEVMODE?

Update 1

It seems that the window generic driver I used doesn't support this option, if you have any information on how to interact with vendor window drivers. I would appreciate it.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum