How to get access at Methods from System.Drawing.Printing.PrinterSettings

I am trying to do twice . First, get access from System.Drawing.Printing.PrinterSettings.InstalledPrinters; Second, change the PrintName doing PrintSettings.PrinterName = “Microsoft Print to PDF”. No error found but not working.

Any suggestions ?

Main.xaml (6.2 KB)

ensure following or import the namespace:

so following is working:

About the second it looks like you would assign a particular printer which is to use, give a try on:

and assign as pintername the printername of your choice

1 Like

Tkhs Peter ! I was making mistake cause no references appers but we can work with it. As in the example of PrintSettings ( PrintSettings.I don’t show anything but we can write PrintSettings.InstalledPrinters)