Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Updated 17-Aug-12 1:16am
v2
Comments
Mikkel Eriksen 17-Aug-12 7:15am    
forgot to tell this.
in Windows XP, I could do something like this :
run CMD
copy /b %filename lpt1

think its hard to replicate that ?
[no name] 17-Aug-12 9:19am    
It's actually very easy to replicate that System.Diagnostic.Process.
Mikkel Eriksen 17-Aug-12 9:55am    
I rather want to do the diagnostic.Process it seems way more easy compared to print. the question is can process handle multiply files from a listbox ?

1 solution

This CodeProject article (I/O Ports Uncensored - 1 - Controlling LEDs (Light Emiting Diodes) with Parallel Port[^]) should help you get started.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900