468,791 Members | 1,777 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,791 developers. It's quick & easy.

Using ShellExecute to PrintTo

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
ma**********@rogers.com
Jul 21 '05 #1
0 2225

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by scrimp | last post: by
3 posts views Thread by Wiktor Zychla | last post: by
11 posts views Thread by Le, Thanh-Nhan | last post: by
reply views Thread by David | last post: by
5 posts views Thread by Valeria | last post: by
reply views Thread by Marcel Sammut | last post: by
2 posts views Thread by John Smith | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.