从列表框中将整个txt文件打印为命令 [英] Print entire txt file as commands from listbox
问题描述
你好.
希望有人可以帮助我.
我正在尝试将prn(与txt相同)文件打印到打印机(LPT1或用于测试目的的文件).这些文件包含用于CNC机床的命令,并且这些文件位于列表框中.我试图理解印刷,但该死,那很难
(考虑到我现在只编程了3个月).
将多个prn文件作为命令发送到LPT1,该怎么办?
顺便提一句.在C#win Forms中工作
如果有人可以向我展示有关如何执行此操作的文章或链接,我将不胜感激.
hello.
hope someone can help me with this.
I''m trying to print prn(same as txt) files to a printer(LPT1 or File for testing purpose). these files contains commands for a CNC machine and these files are located within a listbox. I''ve tried to understand printing but damn, thats hard
(given I''ve only programmed for 3 months now)..
send multiply entire prn files as commands to LPT1, how do I do that ?
btw. working in C# win Forms
I would be greatful if someone can show me an article or link on how to do this.
推荐答案
此CodeProject文章( ^ ])应该可以帮助您入门.
This CodeProject article (I/O Ports Uncensored - 1 - Controlling LEDs (Light Emiting Diodes) with Parallel Port[^]) should help you get started.
这篇关于从列表框中将整个txt文件打印为命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!