从打印机端口捕获数据并保存到文件(Excel / PDF) [英] Capture data from printer port and save to file (Excel/PDF)

查看:306
本文介绍了从打印机端口捕获数据并保存到文件(Excel / PDF)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个大型机应用程序,通过它我们可以发送文件打印命令。由于此应用程序是基于LAN的,并且它直接连接到LAN上的打印机,即使我将默认打印机更改为'PDFCreater',打印命令也会转到LAN上的打印机。 我想创建一个应用程序,通过该应用程序,我可以从打印机端口读取数据,并根据需要将其保存为软拷贝(pdf或excel)。

任何人都可以帮我这个吗?



谢谢&问候,

Harshala

Hi,

I have one mainframe application through which we can send command for document printing. As this application is LAN based and it directly connected to printer on LAN, even though i changed default printer as 'PDFCreater' print command goes to printer on LAN. I want to create one application through which i can read data from printer port and save it into soft copy (pdf or excel) as required.
can anyone help me with this??

Thanks & Regards,
Harshala

推荐答案

很久以后有人问过一个技巧问题... + 5 for that :)



我不知道我是否知道答案,但这是我的第一件事......



根据此 [ ^ ],大型机的打印机端口 515 ,所以尝试使用以下文章 C#中的网络嗅探器 [ ^ ],如果要从端口解析数据,则< a href =http://www.faqs.org/rfcs/rfc1179.html>这里是协议说明 [ ^ ]



祝你好运......
Well after a long time someone asked a trick question... +5 for that :)

I don't know whether I know the answer or not, but this is the first thing comes my mind...

according to this [^], the printer port for mainframe is 515, so try to capture the data from that port using following article A Network Sniffer in C#[^], if you want to parse the data from the port, then here is the protocol description[^]

Good luck...


您好Harshala,
您是否找到了从LPT端口捕获数据的任何解决方案。



如有任何更新,请与我们联系。等待回复。



在此先感谢,

Rajkumar
Hi Harshala,
Did you find out any solution for Capturing data from LPT port.

Please let me know any update..Waiting for response.

Thanks in Advance,
Rajkumar


您好Harshala,



您是否解决了从打印机端口捕获数据的问题。



thnks,

George Garvasis
Hi Harshala,

Did you solved the problem for Capturing data from printer port.

thnks,
George Garvasis


这篇关于从打印机端口捕获数据并保存到文件(Excel / PDF)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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