Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0 printing ListBox
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 17-Aug-12 1:13am
Edited 17-Aug-12 1:16am
v2
Comments
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
good
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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 6,656
1 Sergey Alexandrovich Kryukov 6,400
2 CPallini 5,240
3 George Jonsson 3,584
4 Gihan Liyanage 2,625


Advertise | Privacy | Mobile
Web04 | 2.8.140921.1 | Last Updated 17 Aug 2012
Copyright © CodeProject, 1999-2014
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