Welcome to Dream.In.Code
Become a C++ Expert!

Join 136,921 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,776 people online right now. Registration is fast and FREE... Join Now!




Code to send output to Printer

 
Reply to this topicStart new topic

Code to send output to Printer

R_Jawahar
1 Apr, 2008 - 11:27 PM
Post #1

New D.I.C Head
*

Joined: 1 Apr, 2008
Posts: 2

I am intermediate C++ Programmer. I have developed one file based program. It works well.But I need a help to prepare Print routines. My question is How can we take printouts via Printer ?
User is offlineProfile CardPM
+Quote Post

S0n1C
RE: Code To Send Output To Printer
1 Apr, 2008 - 11:44 PM
Post #2

New D.I.C Head
*

Joined: 15 Jun, 2007
Posts: 35


My Contributions
are you using a linux or windows platform computer?
User is offlineProfile CardPM
+Quote Post

R_Jawahar
RE: Code To Send Output To Printer
1 Apr, 2008 - 11:46 PM
Post #3

New D.I.C Head
*

Joined: 1 Apr, 2008
Posts: 2

QUOTE(S0n1C @ 2 Apr, 2008 - 12:44 AM) *

are you using a linux or windows platform computer?


Im Using Windows XP

User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Code To Send Output To Printer
2 Apr, 2008 - 12:14 AM
Post #4

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,495



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
QUOTE(R_Jawahar @ 2 Apr, 2008 - 12:46 AM) *

QUOTE(S0n1C @ 2 Apr, 2008 - 12:44 AM) *

are you using a linux or windows platform computer?


Im Using Windows XP

A very generic way is to open the LPT port as a file & write to it. But keep in mind you'll need to use \r as well as \n.

Example
User is online!Profile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/3/08 10:13PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month