how to get hard copy( print out ) of output or report in c++ in codeblocks.
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
You've been using codeblocks for SIX YEARS now...and you haven't read the manual? Their own software guides and wiki tell you how to print, and offer numerous samples on how to configure page size, etc.
Past that, as others have said, you can copy/paste into whatever you want, and print from there.
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.
You'll get better answers by asking a better question. From your subsequent post it would seem your question is "how to write to a printer in C or C++"?
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.
thanks for reply. actually i want to embed code in my c++ application so that my software have print functionality.
That is quite a different question than the thread title suggests. You might want to review the Site FAQ pages for help in forming your questions, and in particular the link you will find there to the article How To Ask Questions the Smart Way, which has many good tips!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.