在Web应用程序中连接到Datamax打印机和打印标签 [英] Connection to Datamax printer and printing label in web application

查看:51
本文介绍了在Web应用程序中连接到Datamax打印机和打印标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个Web应用程序,该应用程序必须与连接到共享网络的Datamax标签打印机进行通信.如何使用其IP地址连接到打印机并打印标签?我正在使用C#.

请帮助我.

I am creating a web application which has to communicate to a Datamax label printer connected to the shared network. How can I connect to the printer using its IP address and get print of label? I am using C#.

Please help me.

推荐答案


我用这个.这是一个非常简单的工具,它可以正常工作.

1.使用以下命令创建文件print.bat:print/D:\\servername\printername\\location\print.txt.
2.在代码中使用:
流程proc = new Process();
proc.EnableRaisingEvents = true;
Process.Start("\\ print.bat");
proc.Close();
Hi,
I use this one . It`s very simple buit it works OK .

1. create file print.bat with : print /D:\\servername\printername\\location\print.txt inside .
2. in code a use:
Process proc = new Process();
proc.EnableRaisingEvents = true;
Process.Start("\\print.bat");
proc.Close();


我尝试了一下,但它不起作用!
i try it and its not working !


这篇关于在Web应用程序中连接到Datamax打印机和打印标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆