在本地主机上查找(POS)打印机?

时间:2015-02-24 10:32:40

标签: c# asp.net .net

我正在开发管理餐厅订单网络应用程序。网站工作正常。但是在本地主机上找到PRINTER时会出现问题。我正在使用虚拟打印机。

private PosPrinter GetReceiptPrinter()
{
    PosExplorer posExplorer = new PosExplorer();

    DeviceInfo receiptPrinterDevice = posExplorer.GetDevice("PosPrinter", "TwoPilotsDemoPrinter"); 

    return (PosPrinter)posExplorer.CreateInstance(receiptPrinterDevice);
}

当我们在本地主机上找到打印机时出现问题,即 posExplorer.GetDevice(" PosPrinter"," TwoPilotsDemoPrinter");

有没有人有相同的经验。

提前致谢。

0 个答案:

没有答案
相关问题