Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to print a details to default printer in the client machine in asp.net website using System.Drawing.Printing object

now im using the below code for geting the printer name

C#
PrintDocument printdoc = new PrintDocument();
    PrinterSettings pr = new PrinterSettings();

printdoc.PrinterSettings.PrinterName = pr.PrinterName;



but this code gives the default printer name of the server

but i want the default printer of the client system
Posted
Updated 12-Sep-11 1:34am
v2
Comments
Uday P.Singh 12-Sep-11 7:37am    
why don't you use javascript?

As you want to give print option, you can use
windows.print()

of javascript.

hope this will help you.
sorry if i misunderstood your requirement.
 
Share this answer
 
 
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