how to get hard copy( print out ) of output or report in c++ in codeblocks.
hi to all, I've centos7.5 and codeblocks in VM. I am trying to get report of ( or file in C++ ) in hard copy by print like option as in gui. but have no idea. please any suggetion.
|
No programmer, but if you can view them on a screen, there are numerous copy/paste options. It not, email then to yourself or put the code on google drive?
|
yes i think you just got to high light the messages, and right click or click around in that message window, and find copy all then paste it into a separate text file, then you can print it out. yes?
|
Quote:
Past that, as others have said, you can copy/paste into whatever you want, and print from there. |
thanks for reply. actually i want to embed code in my c++ application so that my software have print functionality.
|
Quote:
|
Quote:
If that's correct: You can write directly to the device by opening it with popen (stdio.h) and then using the standard stream functions but this isn't very portable. A better approach might be to use the CUPS library. Here's a good place to start: https://www.cups.org/doc/cupspm.html |
Quote:
Good luck! |
All times are GMT -5. The time now is 11:30 PM. |