T.script
T.script

Reputation: 327

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

Background

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

Question

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.

Upvotes: 1

Views: 365

Answers (0)

Related Questions