我正在开发管理餐厅订单网络应用程序。网站工作正常。但是在本地主机上找到PRINTER时会出现问题。我正在使用虚拟打印机。
private PosPrinter GetReceiptPrinter()
{
PosExplorer posExplorer = new PosExplorer();
DeviceInfo receiptPrinterDevice = posExplorer.GetDevice("PosPrinter", "TwoPilotsDemoPrinter");
return (PosPrinter)posExplorer.CreateInstance(receiptPrinterDevice);
}
当我们在本地主机上找到打印机时出现问题,即 posExplorer.GetDevice(" PosPrinter"," TwoPilotsDemoPrinter");
有没有人有相同的经验。
提前致谢。