Output send to printer
How can the output in languages C#开发者_如何学JAVA and C++ send to printer?
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
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.
精彩评论