Click here to Skip to main content
11,502,845 members (60,984 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#4.0 printing ListBox
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
Edited 17-Aug-12 1:16am
Mikkel Eriksen at 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 at 17-Aug-12 9:19am
It's actually very easy to replicate that System.Diagnostic.Process.
Mikkel Eriksen at 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)

Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 17 Aug 2012
Copyright © CodeProject, 1999-2015
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