[WebMethod]
public string PrintT()
{
System.Drawing.Printing.PrintDocument prnDocument = new System.Drawing.Printing.PrintDocument();
prnDocument.PrinterSettings.PrinterName = @"\\192.168.0.110\PDFCreator";
prnDocument.Print();
return "打印成功";
}
特别强调要指出 调用哪个台打印机