M
Marcel Sammut
Greetings,
I am converting a VB6 application to .net and am having troubles trying to
print a document directley to the printer. My VB6 app used the API
ShellExecute method to accomplish this, however, needed the printer name,
driver and port. All which were obtainable using the Printer object in VB6.
Now in .net, I've tried using the System.Drawing.Printing namespace to do
this, but that is unsatisfactory. So I went back to the API ShellExecute
method. However, I am only able to obtain the printer name property of the
selected printer. In order to use ShellExecute, I must also obtain the
printer port and driver.
Does anyone know how to obtain the printerport and printerdriver properties
of a selected printer?
Thanks,
Marcel Sammut
(e-mail address removed)
I am converting a VB6 application to .net and am having troubles trying to
print a document directley to the printer. My VB6 app used the API
ShellExecute method to accomplish this, however, needed the printer name,
driver and port. All which were obtainable using the Printer object in VB6.
Now in .net, I've tried using the System.Drawing.Printing namespace to do
this, but that is unsatisfactory. So I went back to the API ShellExecute
method. However, I am only able to obtain the printer name property of the
selected printer. In order to use ShellExecute, I must also obtain the
printer port and driver.
Does anyone know how to obtain the printerport and printerdriver properties
of a selected printer?
Thanks,
Marcel Sammut
(e-mail address removed)