使用 POS.NET 配置 POS 打印机

发布于 2024-08-02 12:29:32 字数 101 浏览 4 评论 0原文

是否可以从 POS.NET 应用程序配置 POS 打印机服务对象(爱普生打印机服务对象)(例如为网络连接的打印机配置 IP 地址)?如果不需要通过爱普生提供的应用程序单独完成,那就太好了。

Is it possible to configure a POS printer service object (an Epson one) from a POS.NET application (such as configuring the IP address for a network connected printer)? It would be nice if it didn't need to be done separately through the applications that Epson provides.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

命比纸薄 2024-08-09 12:29:32

事实证明,Microsoft POS.NET 服务对象是用 XML 文件配置的。它们位于 %programdata%\microsoft\服务点\configuration 中。例如,您可以通过编写 XML 文件直接从 .NET 程序配置网络收据打印机。

请参阅这篇文章有关更多信息,请访问 MSDN 论坛。

It turns out that Microsoft POS.NET service objects are configured with XML files. They are placed in %programdata%\microsoft\point of service\configuration. For instance, this allows you to configure a network receipt printer directly from a .NET program simply by writing an XML file.

See this post of the MSDN forums for more information.

想挽留 2024-08-09 12:29:32

不确定我完全理解,但这里有一些一般性想法...

只要您可以通过 IP 访问设备并且您知道如何对数据进行编码,您应该能够生成您自己的 Epson 特定输出文件并将其直接发送到IP 或打印机队列。

查看以下内容。这将允许您将打印机就绪文件发送到系统上安装的“本地打印机”。这允许您利用假脱机程序及其排队机制,但不必通过其驱动程序/软件等发送数据。

如何使用 Visual C# .NET 将原始数据发送到打印机 [链接不再可用]

另一个选项是只需打开端口 9100(假设它支持 9100 类型连接)并以二进制方式写出您的数据。

Not sure I understand completely but here are some general thoughts...

As long as you have access to the device over IP and you know how to code the data you should be able to gnereate your own Epson speciifc output file and send it directly to the IP or to the printer queue.

Check out the following. This will let you send a printer ready file to a 'local printer' that is installed on your system. This allows you to take advantage of the spooler and it's queuing mechanism but not have to send data through their driver/software etc.

How to send raw data to a printer by using Visual C# .NET [Link no longer available]

The other option is just to open port 9100 (assuming it supports 9100 type connectivity) and binary write out your data.

花海 2024-08-09 12:29:32

Epson 将大多数连接设置存储在 HKEY_LOCAL_MACHINE\SOFTWARE\OLEforRetail\ServiceOPOS\POSPrinter\YourDeviceName 注册表中。

我们使用它以编程方式设置打印机的 COM 端口,因为我们的应用程序需要扫描 COM 端口以提供“即插即用”类型的功能。

您可能会从 regedit 中看到这些设置,并且应该能够使用 Microsoft.Win32.Registry 类在 .Net 中轻松修改它们。

Epson stores most connection settings the registry in HKEY_LOCAL_MACHINE\SOFTWARE\OLEforRetail\ServiceOPOS\POSPrinter\YourDeviceName.

We have used this to programmatically set the COM port for our printer, because our application needed to scan COM ports to give a "plug-and-play" type functionality.

You will probably see these settings from regedit, and should able to easily modify them in .Net with the Microsoft.Win32.Registry class.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文