如何通过WCF服务从客户端应用打印服务器端?

时间:2019-05-17 15:30:06

标签: c# wcf stimulsoft

当我在服务器上运行应用程序时,它会通过StimulSoft打印方法在本地正确地打印到物理热敏打印机,但是当我从WCF的客户端应用程序调用相同的方法时,出现此错误:

“当应用程序未以UserInteractive模式运行时,显示模式对话框或表单是无效操作。指定ServiceNotification或DefaultDesktopOnly样式以显示来自服务应用程序的通知。”

PrinterSettings ps1 = new PrinterSettings();
ps1.PrinterName = MyPrintControler.SellerPrinterName;
stiReport.Print(false, ps1);

0 个答案:

没有答案