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)

@vicenteNeto
ensure following or import the namespace:
grafik

so following is working:
grafik

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

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)