I need a substitute of VB6 Printer Class:
Microsoft.VisualBasic.PowerPacks.Printing.Compatibility
I checked System.Drawing.Printing in C# but not getting direct alternative of Printer object in VB6.
Set p = Printer
Any link would be more helpful.
Here is code to illustrate how to use
Microsoft.VisualBasic.PowerPacks.Printing.Compatibility. This is nearly identical to VB6 code I have had in production for many years. It should be noted that DeviceName is read-only even in VB6 so you need to iterate the list of printers looking for a match.