| | |
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
>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.
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.
•
•
Join Date: Nov 2004
Posts: 12
Reputation:
Solved Threads: 0
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
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<<<
![]() |
Similar Threads
- News Story: Industry Print Mags Go the Way of the Dodo Bird (Linux Servers and Apache)
- News Story: Print is Dead: Linux Magazine Goes Web Only (Linux Servers and Apache)
- internet explorer while trying to print (Web Browsers)
- Can't print the picture (Web Browsers)
- Print Center (OS X)
- Adding data to print job (Visual Basic 4 / 5 / 6)
- Outlook XP won't print (Windows NT / 2000 / XP)
- Page counter print accounting (*nix Software)
Other Threads in the C++ Forum
- Previous Thread: need help with prgrm that will decode a message
- Next Thread: array function operation
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count data database delete deploy developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






