Print

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2004
Posts: 5
Reputation: Faramba is an unknown quantity at this point 
Solved Threads: 0
Faramba Faramba is offline Offline
Newbie Poster

Print

 
0
  #1
Nov 13th, 2004
How can we print the output of the program(which is in the black environment, dos form)in the c++ visual studio 6 compiler?
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,630
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 718
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Print

 
0
  #2
Nov 13th, 2004
>How can we print the output of the program
Print to a printer device, you mean? There are probably issues involved that you aren't aware of, so writing directly to a printer stream isn't the best idea. It would be much better to search your documentation to find a nice, happy way of printing data. There are several naive approaches though. The first is using the nonstandard stream stdprn, though I don't believe it's available in Visual Studio 6. The other common option is opening your own stream with the files "PRN" or "LPT1", which "PRN:" and LPT1:" as alternatives if the first two don't work. But if you can find a printer interface API in your compiler's libraries, that would be preferable.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 12
Reputation: Extreme is an unknown quantity at this point 
Solved Threads: 0
Extreme Extreme is offline Offline
Newbie Poster

Re: Print

 
0
  #3
Nov 16th, 2004
if u want to print the output of the program(which is in the black environment, dos form ..then open the output window which is in the block evironment...then dispay the output and then press ALT+SPACE ...then press Edit....then press Mark..and higlight all the output which u want to print...and then press ENTER....(Press Enter to copy the selected text)

Then close the output window..then open Notepad and then paste The output u copied into the notepad... then after u copy the selected text to the notepad...then press File and then press Print........I hope u understood what i told ya...

Did u get ur problem solved? Send me a private message if ur problem is sovled...

Or if u still hav any problemz then just Private message me...

Bye and take care
>>>Extreme<<<
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC