社区
其它技术问题
帖子详情
有没有办法获取网口打印机打印内容
rophie
2014-05-07 05:40:54
现在有个网口的打印机,怎么获取打印内容呢。
现在做的是用WinPcap拦截tcp和端口的数据,但是好像是二进制数据,不知道怎么分析啊
...全文
320
2
打赏
收藏
有没有办法获取网口打印机打印内容
现在有个网口的打印机,怎么获取打印内容呢。 现在做的是用WinPcap拦截tcp和端口的数据,但是好像是二进制数据,不知道怎么分析啊
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
rophie
2014-05-07
打赏
举报
回复
也可以在有打印机的电脑上装软件来监控的,有很多收费的监控软件,不知道是怎么实现的
赵4老师
2014-05-07
打赏
举报
回复
仅供参考 LocalMon: Sample Port Monitor Server DLL [This is preliminary documentation and subject to change.] SUMMARY A port monitor DLL is a user-mode DLL that is responsible for providing a communications path between the user-mode print spooler and the kernel-mode port drivers that access I/O port hardware. Please refer to the Windows® DDK documentation for further information about print monitors. This sample works on both x86 and Alpha platforms and the code is 64-bit compliant. BUILDING THE SAMPLE The code must be built using the build environment shipped with the DDK. Microsoft® Visual C® must be present on the machine for the sample to build properly, as build will use some header files. Also, the SDK and the DDK must be installed. To build the sample, run build from the src\print\monitors\localmon directory. The DLL will be placed in the appropriate platform directory (either i386 or Alpha). To install a port monitor, an INF file called Monitor.inf is needed. This INF file is based on Printmon.inf, the default INF file for installing port monitors. A functional Monitor.inf file is provided. However, in order to adapt it to the user's needs, it will be necessary to make changes in certain designated places tagged "User Changes." Examples of these changes are: changing the source media description or adding a help file to the monitor. Once built, the sample will produce four binaries: DDKLocalmon.dll, DDKLocalmon.lib (an export lib), DDKLocalmon.exp, and, if the sample is built in a checked environment, DDKLocalmon.pdb. Before installing this sample monitor, the user needs to build src\print\localui, because DDKLocalui.dll provides the UI for DDKLocalmon and they are installed together. CODE TOUR File Manifest File Description Config.c Handles spooler entry points for adding, deleting, and configuring localmon ports Dialogs.c Source module that implements dialog boxes Dialogs.h Header for DIALOGS.C Lmon.h Header that declares PORT_INFO_FF structure Irda.c IRDA printing support in localmon Irda.h Header for IRDA Local.h Header that declares debug functions Localmon.c Source module that contains the DLL entry point Localmon.def File that lists the exported functions Localmon.prf Resource file for the dialogs Localmon.h Header for global declarations and function prototypes Localmon.rc Resource file for the module Makefile Generic file for building the code sample Precomp.h Generic header Localmon.htm Documentation for this sample (this file) Resource.rcv Resource version file Resource.h Resource include file Setlink.c Utility to display or change the value of a symbolic link Sources Generic file for building the code sample Spltypes.h Header for Winspool.c Util.c Source module for support routines Winspool.c Implements the spooler supported APIs for printing Xcv.c Interface for calling print spooler's XcvData (transceive data) functions. This is the means by which a port monitor UI DLL communicates with its associated port monitor server DLL. Top of page © 1999 Microsoft Corporation
计算机
打印
机
设置,
网口
打印
机
设置教程(新)
本文介绍如何配置
网口
打印
机
,包括确保
打印
机
与电脑在同一局域网内、修改IP地址、安装驱动及设置
打印
机
等
内容
。
C#利用pos命令操作
网口
打印
机
的方法
本文介绍了两种使用C#通过POS命令操作
网口
打印
机
的方法,无需驱动,
打印
速度快。方法一利用TcpClient类,方法二使用Socket类,分别展示了发送数据到
打印
机
的关键代码,并对可能出现的异常进行了处理。
佳博
网口
打印
机
驱动安装
本文介绍了
打印
机
的使用设置方法,包括查看
打印
机
自检页信息,说明了设置
打印
机
IP地址的原因及步骤,还提到在官网下载驱动进行安装和测试。指出修改
打印
机
IP较难,工具难找,强调调用
打印
机
的电脑和
打印
机
需在同一IP段。
delphi 连接
网口
打印
机
发送指令
打印
二维码
该代码段展示了如何用Delphi通过ESC/POS指令生成并
打印
二维码,解决了图像
打印
存在的黑块问题。代码首先设置模块大小、纠错级别和二维码尺寸,然后将数据发送到
打印
机
进行
打印
。此方法适用于某些不支持图像
打印
的
网口
打印
机
。
如何将带
网口
打印
机
进行局域网共享
打印
本文详细介绍如何通过无线路由器连接
打印
机
,并将其设置为共享
打印
机
的过程。包括下载安装驱动、配置IP地址、设置共享等步骤。
其它技术问题
3,881
社区成员
9,044
社区内容
发帖
与我相关
我的任务
其它技术问题
C/C++ 其它技术问题
复制链接
扫一扫
分享
社区描述
C/C++ 其它技术问题
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章