471,605 Members | 1,338 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

Is there something better than EnumPrinters?

Hi All I was just wondering if there was a better function/way to get
information on all the printers currently installed than EnumPrinters.
I only really need all the printer names but don't care to do the
memory management involved with EnumPrinters.

I looked at using GetProfileString with [devices] but that requires I
know the buffer size ahead of time.

Any alternatives would be appreciated.

Jan 26 '06 #1
2 1927

Py************@gmail.com wrote:
Hi All I was just wondering if there was a better function/way to get
information on all the printers currently installed than EnumPrinters.
I only really need all the printer names but don't care to do the
memory management involved with EnumPrinters.

I looked at using GetProfileString with [devices] but that requires I
know the buffer size ahead of time.

Any alternatives would be appreciated.


Sure.

PrinterSettings.InstalledPrinters will give you these.

No, its not terribly intuitive :)

Matt

Jan 26 '06 #2
Yes actually thank you!

Jan 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Steve Armstrong | last post: by
3 posts views Thread by PyongHopscotch | last post: by
61 posts views Thread by vadam17 | last post: by
20 posts views Thread by James | last post: by
1 post views Thread by =?Utf-8?B?U3RlcGhhbmllIERvaGVydHk=?= | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.