I am converting a large program from VB6 to C#. One of the problems I've run into is the VB6 program uses the old Kodak Imaging Control. I've not been able to find anything inexpensive to replace it with so I have got it running in the C# program. The problem is that the print method for the Kodak image control requires the printer name, driver and port. This was not much of a problem in VB6 and I used:
Private Sub cboPrinters_Click()
Set Printer = Printers(cboPrinters.ListIndex)
.gstrPrnName = Printer.DeviceName
.gstrPrnDriver = Printer.DriverName
.gstrPrnPort = Printer.Port
This used the Printers collection in VB6. Does anyone know what needs to be done in C# to reveal the printer info. Most of the printers are network printers and usually one local one.
Open in new window