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:
- C#: .NET printing
- C++: GDI Print API
ChrisW
2010-06-03 08:13:32
Remember, there are systems that run C and C++ that have no printers.
Thomas Matthews
2010-06-03 19:04:55
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
2010-06-03 08:42:08