I know you use printf to print to the screen.
What would I use to send the file to a printer using C++
Which OS/Compiler do you have ?
Where is the printer connected to your PC, serial, parallel, USB, network?
You say printf, are we to assume some kind of console program?
Which OS/Compiler do you have ?
Where is the printer connected to your PC, serial, parallel, USB, network?
You say printf, are we to assume some kind of console program?
Compiler is Microsoft Visual Studio 2005 or I have Dev=C++.
Printer is USB.
Ref printf is for use in C that prints to screen but what do I use to print to a printer in C++?
Well, here is one way to do it. You can download a demo project that contains complete source code.
Here is another with a little more explaination of how to use it.
I'm sure if you search these google links you will find other ways.
Just find out how to send a print request from dos prompt and use the command in your code.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.