Click here to Skip to main content
15,906,341 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,
i am new to xaml(c#) i want to know the current printer in a local system,
because based on that printer i need to call particular printername method in c#.
can anyone help me in this one.

thanks in advance,
Posted
Comments
[no name] 25-Aug-12 6:49am    
The answer you get is going to greatly depend on what you think a "printername method" is. And what does XAML have to do with anything?

1 solution

Try:

C#
System.Drawing.Printing.PrinterSettings ops = new System.Drawing.Printing.PrinterSettings();
string defaultPrinterName = ops.PrinterName;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900