These are the two function im using to print, which is working in my system, but not working in my client system(Server 2012)
public void print()     {         PrintDialog pd = new PrintDialog();         PrintDocument pdoc = new PrintDocument();         PrinterSettings ps = new PrinterSettings();         Font font = new Font("Courier New", 15);         ps.PrinterName = get_printer();         PaperSize psize = new PaperSize("Custom", 100, 200);         //ps.DefaultPageSettings.PaperSize = psize;         pd.Document = pdoc;         pd.Document.DefaultPageSettings.PaperSi ...

Go to the complete details ...