Click here to Skip to main content
13,050,450 members (98,155 online)
Rate this:
Please Sign up or sign in to vote.
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 17-Aug-12 1:13am
Updated 17-Aug-12 1:16am
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 ?
Wes Aday 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 17 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100