tags:

views:

69

answers:

2

How can the output in languages C# and C++ send to printer?

+1  A: 

It's O/S-specific, and language-spcific. Different O/Ses, and different (language-specific) run-time-libraries have different APIs.

Assuming you mean Windows (because you talk about C#), some relevent links are:

ChrisW
Remember, there are systems that run C and C++ that have no printers.
Thomas Matthews
A: 

There is no standard library support for this in C++, but you can use the printing mechanism of the Qt Framework, which is a cross-platform library. Ultimately this functionality is provided by OS-specific APIs, but there are plenty of cross-platform libraries such as Qt that abstract between operating systems. For C#, you may find this article with an example of printing in C# to be of use to you.

Michael Aaron Safyan