Basically, there are two different methods. Either you can call the PRNTextOut function to print line by line while using the pre-installed font of the printer. This method is very fast. You can find an overview about printable characters in our Printer Library Manual. Or you can call the PRNPrintWindow function to print any area you can see on the screen. This method is slower, but can be used with a True Type Font of the Operating System if the inbuilt printer font is not sufficient. Here are two examples for C# programming language.
Method (A) uses the pre-installed printer font for very fast output:
PRNPrintTextOut(3, "ABC");
Method (B) uses True Type Font to print what you see on the screen:
this.label.Text = "ABC";
PRNPrintWindow(this.label.Handle);
|