Groups | Blog | Home
all groups > c# > february 2006 >

c# : mapping printers?



cykill
2/14/2006 10:43:57 PM
Hi, I'm new to c#. Is it possible to map network printers with it? and
Nicholas Paldino [.NET/C# MVP]
2/16/2006 12:38:56 PM
cykill,

You can set up a printer by calling the appropriate functions through
the P/Invoke layer. Specifically, you want the following functions:

AddPrinter
AddPrinterConnection
AddPrinterDriverEx

You may need a combination of these to add a printer. Also, for the
definitions, you can probably find them on http://www.pinvoke.net

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com

[quoted text, click to view]

AddThis Social Bookmark Button