• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I print a raw text file to any given printer port

 
Colm Dickson
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all.


How do I print a raw text file to any given printer port. My application will create a file and now I want to print it to the LPT1 port if I have a printer there or to any other port I wish. How is this done? What classes do I use? I do not wish to invoke the printers dialog but do it all in the background. Any pointers please?

Thanks,

Colm

 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
 
Colm Dickson
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replying. I can get that code to work but as I don't have a parallel printer attached then I can only use it bu using the NET USE command in dos to redirect output data sent to LPT1 to another printer. I want to avoid this however and use port printing, be this LPT1, USB or ant networked printer. What then must I do or where must I look for information on this please?

Thanks,

Colm
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!